[go: up one dir, main page]

CN114970133A - Lighting prediction model training method, lighting prediction method, device and equipment - Google Patents

Lighting prediction model training method, lighting prediction method, device and equipment Download PDF

Info

Publication number
CN114970133A
CN114970133A CN202210539318.1A CN202210539318A CN114970133A CN 114970133 A CN114970133 A CN 114970133A CN 202210539318 A CN202210539318 A CN 202210539318A CN 114970133 A CN114970133 A CN 114970133A
Authority
CN
China
Prior art keywords
lighting
prediction model
data
building
model
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
CN202210539318.1A
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.)
China Certification Beijing Evaluation Technology Service Co ltd
Original Assignee
China Certification Beijing Evaluation Technology Service Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Certification Beijing Evaluation Technology Service Co ltd filed Critical China Certification Beijing Evaluation Technology Service Co ltd
Priority to CN202210539318.1A priority Critical patent/CN114970133A/en
Publication of CN114970133A publication Critical patent/CN114970133A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/20Design optimisation, verification or simulation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/21Design or setup of recognition systems or techniques; Extraction of features in feature space; Blind source separation
    • G06F18/214Generating training patterns; Bootstrap methods, e.g. bagging or boosting

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Evolutionary Computation (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Evolutionary Biology (AREA)
  • Artificial Intelligence (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Geometry (AREA)
  • Circuit Arrangement For Electric Light Sources In General (AREA)

Abstract

The embodiment of the invention discloses a lighting prediction model training method, a lighting prediction device and lighting prediction equipment. Acquiring meteorological data and simulation time data of a target area, transmitting the meteorological data and the simulation time data to a lighting simulation system to set lighting simulation environment parameters, transmitting multiple groups of acquired building parameters to the lighting simulation system to obtain lighting data corresponding to the building parameters, wherein the building parameters and the corresponding lighting data form sample data; creating at least one initial lighting prediction model, and performing iterative training on each initial lighting prediction model based on training sample data in the sample data to obtain a lighting prediction model corresponding to each initial lighting model; and verifying the lighting prediction model based on verification sample data in the sample data to obtain at least one evaluation index of each lighting prediction model, and determining the target lighting prediction model based on the at least one evaluation index. And the creation, training and verification of the lighting prediction model are realized based on the sample data, and the precision of the lighting prediction model is improved.

Description

采光预测模型训练方法、采光预测方法、装置及设备Daylighting prediction model training method, daylighting prediction method, device and equipment

技术领域technical field

本发明实施例涉及智慧城市建设技术领域,尤其涉及采光预测模型训练方法、采光预测方法、装置及设备。Embodiments of the present invention relate to the technical field of smart city construction, and in particular, to a method for training a lighting prediction model, a method, device and equipment for lighting prediction.

背景技术Background technique

随着人们物质文化水平的提高,对室内自然采光指标有更高的需求,因此,对室内采光的预测能很大程度上满足对人居住环境健康需求。With the improvement of people's material and cultural level, there is a higher demand for indoor natural lighting indicators. Therefore, the prediction of indoor lighting can largely meet the health needs of people's living environment.

目前,室内采光的预测方法主要是使用采光模拟软件进行预测,例如:Ecotect、EnergyPlus等。At present, the prediction method of indoor lighting is mainly to use lighting simulation software, such as Ecotect, EnergyPlus, etc.

然而,此类软件体量较大,输入参数复杂,需要严格遵循建立模型、输入参数、模拟和分析的步骤,用时长,效率低,要求人员专业性强,时间和人工成本高,且输入参数类型受限,无法实现个性化定制,从而导致适用范围受限、预测效益较低。However, such software is large in size and complex in input parameters. It is necessary to strictly follow the steps of model establishment, input parameters, simulation and analysis, which is time-consuming and inefficient. It requires highly specialized personnel, high time and labor costs, and input parameters The type is limited, and personalization cannot be achieved, resulting in limited scope of application and low predictive benefit.

发明内容SUMMARY OF THE INVENTION

本发明提供了采光预测模型训练方法、采光预测方法、装置及设备,以解决现有技术通过采光模拟软件预测室内采光照度存在的软件体量大、输入参数复杂、效率低、成本高、预测效益低等问题。The invention provides a daylighting prediction model training method, a daylighting prediction method, a device and equipment, so as to solve the problem of large software volume, complex input parameters, low efficiency, high cost, and prediction benefit for predicting the existence of indoor daylighting illumination through daylighting simulation software in the prior art. lower issues.

根据本发明的一方面,提供了一种采光预测模型的训练方法,其特征在于,包括:According to an aspect of the present invention, a training method for a lighting prediction model is provided, characterized in that it includes:

获取目标区域的气象数据、模拟时间数据,传输至采光模拟系统中设置采光模拟的环境参数,将获取的多组建筑参数传输至所述采光模拟系统,得到各组建筑参数对应的采光数据,其中,所述建筑参数和对应的采光数据形成样本数据;Obtain the meteorological data and simulation time data of the target area, transmit them to the lighting simulation system to set the environmental parameters of the lighting simulation, and transmit the acquired sets of building parameters to the lighting simulation system to obtain the lighting data corresponding to each set of building parameters, wherein , the building parameters and the corresponding lighting data form sample data;

创建至少一个初始采光预测模型,基于所述样本数据中的训练样本数据对各所述初始采光预测模型进行迭代训练,得到各初始采光模型对应的采光预测模型;Create at least one initial daylighting prediction model, perform iterative training on each of the initial daylighting prediction models based on the training sample data in the sample data, and obtain a daylighting prediction model corresponding to each initial daylighting model;

基于所述样本数据中的验证样本数据对所述采光预测模型进行验证处理,得到各采光预测模型的至少一项评价指标,基于所述至少一项评价指标确定目标采光预测模型。The daylighting prediction model is verified based on the verification sample data in the sample data to obtain at least one evaluation index of each daylighting prediction model, and a target daylighting prediction model is determined based on the at least one evaluation index.

根据本发明的另一方面,提供了一种采光预测方法,其特征在于,包括:According to another aspect of the present invention, there is provided a daylighting prediction method, characterized in that it includes:

读取建筑模型中预设类型的建筑参数,将所述建筑参数输入至预先训练的采光系数预测模型中,得到所述建筑模型对应的采光系数;Reading the architectural parameters of the preset type in the architectural model, inputting the architectural parameters into the pre-trained lighting coefficient prediction model, and obtaining the lighting coefficient corresponding to the architectural model;

将所述建筑参数和所述采光系数输入至预先训练的采光预测模型,得到所述建筑模型对应的自然采光照度,其中,所述采光系数预测模型和所述采光预测模型分别基于权利要求1-5任一所述的采光预测模型的训练方法得到。Inputting the building parameters and the lighting coefficient into a pre-trained lighting prediction model to obtain the natural lighting illuminance corresponding to the building model, wherein the lighting coefficient prediction model and the lighting prediction model are based on claims 1- 5. Any one of the training methods for the daylighting prediction model is obtained.

根据本发明的另一方面,一种采光预测模型训练装置,其特征在于,包括:According to another aspect of the present invention, a lighting prediction model training device is characterized in that, comprising:

样本数据获取模块用于获取目标区域的气象数据、模拟时间数据,传输至采光模拟系统中设置采光模拟的环境参数,将获取的多组建筑参数传输至所述采光模拟系统,得到各组建筑参数对应的采光数据,其中,所述建筑参数和对应的采光数据形成样本数据;The sample data acquisition module is used to acquire the meteorological data and simulated time data of the target area, transmit them to the lighting simulation system to set the environmental parameters of the lighting simulation, and transmit the acquired sets of building parameters to the lighting simulation system to obtain each set of building parameters. Corresponding lighting data, wherein the building parameters and the corresponding lighting data form sample data;

采光预测模型训练模块用于创建至少一个初始采光预测模型,基于所述样本数据中的训练样本数据对各所述初始采光预测模型进行迭代训练,得到各初始采光模型对应的采光预测模型;The daylighting prediction model training module is used to create at least one initial daylighting prediction model, perform iterative training on each of the initial daylighting prediction models based on the training sample data in the sample data, and obtain a daylighting prediction model corresponding to each initial daylighting model;

目标采光预测模型确定模块基于所述样本数据中的验证样本数据对所述采光预测模型进行验证处理,得到各采光预测模型的至少一项评价指标,基于所述至少一项评价指标确定目标采光预测模型。The target daylighting prediction model determination module performs verification processing on the daylighting prediction model based on the verification sample data in the sample data, obtains at least one evaluation index of each daylighting prediction model, and determines the target daylighting prediction based on the at least one evaluation index. Model.

根据本发明的另一方面,一种采光预测装置,其特征在于,包括:According to another aspect of the present invention, a lighting prediction device is characterized in that, comprising:

采光系数预测模块用于读取建筑模型中预设类型的建筑参数,将所述建筑参数输入至预先训练的采光系数预测模型中,得到所述建筑模型对应的采光系数;The daylighting coefficient prediction module is used to read the building parameters of the preset type in the building model, input the building parameters into the pre-trained daylighting coefficient prediction model, and obtain the daylighting coefficient corresponding to the building model;

自然采光照度预测模块用于将所述建筑参数和所述采光系数输入至预先训练的采光预测模型,得到所述建筑模型对应的自然采光照度,其中,所述采光系数预测模型和所述采光预测模型分别基于任意实施例提供的采光预测模型的训练方法得到。The natural daylighting illuminance prediction module is used to input the building parameters and the daylighting coefficient into a pre-trained daylighting prediction model to obtain the natural daylighting illuminance corresponding to the building model, wherein the daylighting coefficient prediction model and the daylighting prediction The models are respectively obtained based on the training method of the daylighting prediction model provided in any embodiment.

根据本发明的另一方面,提供了一种电子设备,所述电子设备包括:According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:

至少一个处理器;以及at least one processor; and

与所述至少一个处理器通信连接的存储器;其中,a memory communicatively coupled to the at least one processor; wherein,

所述存储器存储有可被所述至少一个处理器执行的计算机程序,所述计算机程序被所述至少一个处理器执行,以使所述至少一个处理器能够执行本发明任一实施例所述的采光预测模型训练方法和/或采光预测方法。The memory stores a computer program executable by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform any of the embodiments of the present invention. Daylighting prediction model training method and/or daylighting prediction method.

根据本发明的另一方面,提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机指令,所述计算机指令用于使处理器执行时实现本发明任一实施例所述的采光预测模型训练方法和/或采光预测方法。According to another aspect of the present invention, a computer-readable storage medium is provided, where computer instructions are stored in the computer-readable storage medium, and the computer instructions are used to cause a processor to implement any of the embodiments of the present invention when executed. The daylighting prediction model training method and/or the daylighting prediction method.

本发明实施例的技术方案,基于样本数据构建、训练和验证采光预测模型,使用预测功能时不需要实地测量和大量建筑参数数据,解决了现有技术存在的输入参数复杂、预测效益低、操作专业性强的问题,使对自然采光照度的预测更加的高效、预测结果更准确、预测成本更低。此外,采用预测模型实现采光预测的预测方法系统体量小,操作简单,指令清晰,对用户的专业水平、运行环境等要求低,适用范围广。The technical scheme of the embodiment of the present invention builds, trains and verifies a lighting prediction model based on sample data, does not require on-site measurement and a large amount of building parameter data when using the prediction function, and solves the problems of complex input parameters, low prediction efficiency, and operation in the prior art. Professional problems make the prediction of natural lighting illuminance more efficient, more accurate in prediction results, and lower in prediction cost. In addition, the forecasting method of daylighting forecasting using a forecasting model is small in size, simple in operation, clear in instructions, low in requirements for the user's professional level and operating environment, and has a wide range of applications.

应当理解,本部分所描述的内容并非旨在标识本发明的实施例的关键或重要特征,也不用于限制本发明的范围。本发明的其它特征将通过以下的说明书而变得容易理解。It should be understood that the content described in this section is not intended to identify key or critical features of the embodiments of the invention, nor is it intended to limit the scope of the invention. Other features of the present invention will become readily understood from the following description.

附图说明Description of drawings

为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions in the embodiments of the present invention more clearly, the following briefly introduces the accompanying drawings used in the description of the embodiments. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For those of ordinary skill in the art, other drawings can also be obtained from these drawings without creative effort.

图1是本发明实施例一提供的一种采光预测模型训练方法的流程图;1 is a flowchart of a method for training a daylighting prediction model provided in Embodiment 1 of the present invention;

图2是本发明实施例二提供的一种采光预测方法的流程图;Fig. 2 is a flow chart of a lighting prediction method provided in Embodiment 2 of the present invention;

图3是本发明实施例三提供的一种采光预测模型训练装置的结构示意图;3 is a schematic structural diagram of a lighting prediction model training device provided in Embodiment 3 of the present invention;

图4是本发明实施例四提供的一种采光预测装置的结构示意图;4 is a schematic structural diagram of a lighting prediction device provided in Embodiment 4 of the present invention;

图5是可以用来实施本发明的实施例的电子设备的结构示意图。5 is a schematic structural diagram of an electronic device that can be used to implement embodiments of the present invention.

具体实施方式Detailed ways

为了使本技术领域的人员更好地理解本发明方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分的实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本发明保护的范围。In order to make those skilled in the art better understand the solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only Embodiments are part of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

需要说明的是,本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本发明的实施例能够以除了在这里图示或描述的那些以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。It should be noted that the terms "first", "second" and the like in the description and claims of the present invention and the above drawings are used to distinguish similar objects, and are not necessarily used to describe a specific sequence or sequence. It is to be understood that the data so used may be interchanged under appropriate circumstances such that the embodiments of the invention described herein can be practiced in sequences other than those illustrated or described herein. Furthermore, the terms "comprising" and "having" and any variations thereof, are intended to cover non-exclusive inclusion, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those expressly listed Rather, those steps or units may include other steps or units not expressly listed or inherent to these processes, methods, products or devices.

实施例一Example 1

图1是本发明实施例一提供的一种采光预测模型训练方法的流程图。本实施例可适用于训练室内采光预测模型情况,该方法可以由本发明实施提供的采光预测模型训练装置来执行,该布控装置可以由软件和/或硬件来实现,该布控装置可以配置在电子计算设备上,具体包括如下步骤:FIG. 1 is a flowchart of a method for training a lighting prediction model according to Embodiment 1 of the present invention. This embodiment can be applied to the situation of training an indoor daylighting prediction model. The method can be executed by the daylighting prediction model training device provided by the implementation of the present invention. The deployment and control device can be realized by software and/or hardware. The deployment and control device can be configured in an electronic computing On the device, it includes the following steps:

S110、获取目标区域的气象数据、模拟时间数据,传输至采光模拟系统中设置采光模拟的环境参数,将获取的多组建筑参数传输至所述采光模拟系统,得到各组建筑参数对应的采光数据,其中,所述建筑参数和对应的采光数据形成样本数据。S110. Acquire meteorological data and simulation time data of the target area, transmit them to a daylighting simulation system to set environmental parameters for daylighting simulation, and transmit the acquired sets of building parameters to the daylighting simulation system to obtain daylighting data corresponding to each set of building parameters , wherein the building parameters and the corresponding lighting data form sample data.

目标区域为待进行模拟的建筑所在的地理区域,可选的,该目标区域可以是通过行政区域划分得到,例如目标区域的划分可以是基于省/市/区的行政等级进行划分;可选的,目标区域还可以是基于建筑所在纬度和海拔等信息进行划分。由于不同区域的气候、位置等因素影响建筑内的采光数据,本实施例中,基于同一目标区域的环境数据对采光模拟系统设置采光模拟的环境参数,以得到该目标区域使用的采光数据形成样本数据,相应的,该目标区域的样本数据训练得到适用于对该目标区域内建筑进行采光预测的采光预测模型,以提高采光预测模型的准确性和针对性,降低区域影响导致的识别误差。The target area is the geographic area where the building to be simulated is located. Optionally, the target area can be obtained by dividing the administrative area. For example, the target area can be divided based on the administrative level of the province/city/district; optional , the target area can also be divided based on information such as the latitude and altitude where the building is located. Since the climate, location and other factors of different areas affect the lighting data in the building, in this embodiment, the lighting simulation system is set based on the environmental data of the same target area to set the lighting simulation environment parameters, so as to obtain the lighting data used in the target area to form a sample Correspondingly, the sample data of the target area is trained to obtain a daylighting prediction model suitable for daylighting prediction of buildings in the target area, so as to improve the accuracy and pertinence of the daylighting prediction model and reduce the identification error caused by the influence of the area.

其中,目标区域的气象数据由用户选定的区域以及日期决定,具体的,若用户选定的目标区域为天津市,用户选定的模拟时间数据为2022年2月20日,那么目标区域的气象数据就是指2022年2月20日天津市的气象数据,所述气象数据可以但不限于阴天、雨天、多云等,进一步的,所述气象数据还可以是9:00-11:00晴朗、11:00-15:00多云、15:00-17:00小雨等,对此不做限定。其中,不同的气象数据能够影响建筑内的采光情况,例如,阴天、雨天、雪天、雾天等气象数据,导致建筑内采光差;晴天等气象数据导致建筑内采光良好。通过目标区域内的历史气象数据,设置采光模拟环境,提高对目标区域内建筑进行采光模拟的真实性和准确性。Among them, the meteorological data of the target area is determined by the area and date selected by the user. Specifically, if the target area selected by the user is Tianjin, and the simulation time data selected by the user is February 20, 2022, then the Meteorological data refers to the meteorological data of Tianjin on February 20, 2022. The meteorological data may be, but not limited to, cloudy, rainy, cloudy, etc. Further, the meteorological data may also be clear from 9:00 to 11:00. , cloudy from 11:00-15:00, light rain from 15:00-17:00, etc., which are not limited. Among them, different meteorological data can affect the lighting conditions in the building. For example, meteorological data such as cloudy days, rainy days, snow days, and foggy days lead to poor lighting in the building; meteorological data such as sunny days lead to good lighting in the building. Through the historical meteorological data in the target area, the lighting simulation environment is set to improve the authenticity and accuracy of the lighting simulation of the buildings in the target area.

模拟时间数据是用户设置的进行采光模拟的时间数据,与获取的气象数据相关联,可选的,模拟时间数据可以是某一个季节或者某一个特定日期,由于不同季节、不同日期的日照强度不同,采光会受到一定的影响。具体的,夏季的日照强度较高,相应的冬季的日照强度较低,可以以季节为划分标准,针对性的训练不同季节的采光预测模型;特别的,冬至日的日照强度是一年之中最低的,可以针对这种特殊日期更有针对性的训练采光预测模型。本实施例中,基于气象数据和模拟时间数据对采光模拟系统设置采光模拟的环境参数,以得到该目标区域使用的采光数据形成样本数据,相应的,基于该样本数据训练得到适用于各种天气、季节、特定日期进行采光预测的采光预测模型,以进一步提高采光预测的准确性和针对性,降低气候变化和季节更替对采光预测的影响。The simulation time data is the time data set by the user for lighting simulation, which is associated with the obtained meteorological data. Optionally, the simulation time data can be a certain season or a certain date, because the sunshine intensity of different seasons and different days is different. , the lighting will be affected to a certain extent. Specifically, the sunshine intensity in summer is relatively high, and the corresponding sunshine intensity in winter is relatively low, so we can use the season as the division standard to train the lighting prediction model for different seasons; At the very least, the daylighting prediction model can be trained more specifically for this special date. In this embodiment, the lighting simulation system is set based on the meteorological data and the simulation time data to set the lighting simulation environment parameters, so as to obtain the lighting data used in the target area to form sample data. A daylighting prediction model for daylighting forecasting on specific dates, seasons and specific dates, to further improve the accuracy and pertinence of daylighting forecasting, and reduce the impact of climate change and seasonal replacement on daylighting forecasting.

气象数据和模拟时间数据用于在采光模拟系统中设置采光模拟的环境参数,获取的多组建筑参数作为采光模拟系统的输入传输到采光模拟系统中可以得到各组建筑参数对应的采光数据。Meteorological data and simulation time data are used to set the environmental parameters of daylighting simulation in the daylighting simulation system. The acquired sets of building parameters are transmitted to the daylighting simulation system as the input of the daylighting simulation system, and the daylighting data corresponding to each group of building parameters can be obtained.

采光数据遵循归一化原理,原理如下:The daylighting data follows the normalization principle, which is as follows:

由于各物理量不存在负值,因此取值范围均选为[0,1]。将原取值范围映射到[0,1],可以按正态分布和均匀分布两种方式进行转化。由于物理量数值之间不存在明显的正态分布关系,因此选用均匀分布方式进行归一化。设原始数据(例如模拟得到的采光数据)为data,归一化后的数组为data',min()为取最小值函数,max()为取最大值函数,序号为i,其数学表达式:Since there is no negative value for each physical quantity, the value range is selected as [0,1]. The original value range is mapped to [0,1], which can be transformed in two ways: normal distribution and uniform distribution. Since there is no obvious normal distribution relationship between the values of physical quantities, the uniform distribution method is used for normalization. Let the original data (such as the lighting data obtained by simulation) be data, the normalized array is data', min() is the function of taking the minimum value, max() is the function of taking the maximum value, the serial number is i, and its mathematical expression :

Figure BDA0003647647430000071
Figure BDA0003647647430000071

为更直观的展示建模结果,将归一化后的数值进行建模运算后,应将模型输出映射到原来的取值范围,而这个过程便是反归一化。反归一化是与归一化完全相反的一个过程,因此由上述表达式可以得到反归一化公式:In order to display the modeling results more intuitively, after performing the modeling operation on the normalized values, the model output should be mapped to the original value range, and this process is denormalization. Denormalization is a process that is completely opposite to normalization, so the denormalization formula can be obtained from the above expression:

data(i)=data'(i)×(max(data)-min(data))+min(data)data(i)=data'(i)×(max(data)-min(data))+min(data)

所述采光模拟系统可以是一种采光模拟软件,对该采光模拟系统的类型不作限定,可实现对输入的建筑参数进行采光模拟即可。在模拟软件中建立建筑模型,在模型文件中载入当地气象数据,设置时间和日期,输入建筑参数,设置计算网格尺寸,进行模拟,得到采光数据,对采光数据进行整理和分析。其中,所述建筑参数包括窗台高度、遮阳尺寸、墙体材料反射率、玻璃透光率等;所述采光数据是对建筑参数的模拟和分析,包括分别对窗台高度、遮阳尺寸、墙体材料反射率、玻璃透光率的独立影响进行模拟和分析,以及玻璃透光率、墙体材料反射率、窗台高度的交叉影响进行模拟和分析。建筑参数和对应的采光数据形成样本数据,样本数据是训练以及验证采光预测模型的基础。The lighting simulation system may be a lighting simulation software, and the type of the lighting simulation system is not limited, as long as the lighting simulation can be performed on the input building parameters. Build a building model in the simulation software, load the local meteorological data into the model file, set the time and date, input the building parameters, set the size of the calculation grid, simulate, obtain the lighting data, and organize and analyze the lighting data. Wherein, the building parameters include window sill height, shading size, wall material reflectivity, glass light transmittance, etc.; the lighting data is the simulation and analysis of building parameters, including window sill height, shading size, wall material, etc. The independent effects of reflectivity and glass transmittance are simulated and analyzed, as well as the cross effects of glass transmittance, wall material reflectivity, and window sill height. The building parameters and the corresponding lighting data form sample data, which is the basis for training and validating the lighting prediction model.

S120、创建至少一个初始采光预测模型,基于所述样本数据中的训练样本数据对各所述初始采光预测模型进行迭代训练,得到各初始采光模型对应的采光预测模型。S120. Create at least one initial lighting prediction model, perform iterative training on each of the initial lighting prediction models based on the training sample data in the sample data, and obtain a lighting prediction model corresponding to each initial lighting model.

其中,初始采光预测模型是待训练的采光预测模型,基于训练样本数据对初始采光预测模型进行迭代训练,可得到训练完成的采光预测模型。其中,训练样本数据是指样本数据中任意选取的、一定比例的、用于训练采光预测模型的部分样本数据,剩余部分的样本数据作为验证样本数据用于验证采光预测模型,示例性的,在样本数据中任意选取90%的数据作为训练模型的训练样本数据,那么剩余10%的数据作为验证模型的验证样本数据。初始采光预测模型可由用户自主创建,用户可以自主设置模型的网络结构和网络深度,基于不同的网络结构和/或不同网络深度创建不同的初始采光预测模型,得到不同类型的采光预测模型或者不同网络深度的采光预测模型,用户可以从得到的采光预测模型中根据评价指标选择最优的采光预测模型。通过对初始采光预测模型迭代训练,能够提高采光预测模型的预测精度。The initial daylighting prediction model is the daylighting prediction model to be trained, and the initial daylighting prediction model is iteratively trained based on the training sample data, and the trained daylighting prediction model can be obtained. Among them, the training sample data refers to a part of the sample data that is arbitrarily selected from the sample data and used to train the lighting prediction model, and the remaining part of the sample data is used as the verification sample data to verify the lighting prediction model. In the sample data, 90% of the data is arbitrarily selected as the training sample data for the training model, and the remaining 10% of the data is used as the verification sample data for the verification model. The initial daylighting prediction model can be created by the user, the user can independently set the network structure and network depth of the model, create different initial daylighting prediction models based on different network structures and/or different network depths, and obtain different types of daylighting prediction models or different networks In-depth daylighting prediction model, the user can select the optimal daylighting prediction model according to the evaluation index from the obtained daylighting prediction model. By iterative training of the initial daylighting prediction model, the prediction accuracy of the daylighting prediction model can be improved.

S130、基于所述样本数据中的验证样本数据对所述采光预测模型进行验证处理,得到各采光预测模型的至少一项评价指标,基于所述至少一项评价指标确定目标采光预测模型。S130. Perform verification processing on the daylighting prediction model based on the verification sample data in the sample data, obtain at least one evaluation index of each daylighting prediction model, and determine a target daylighting prediction model based on the at least one evaluation index.

其中,以验证处理得到的评价指标作为采光预测模型预测效果的评价标准,确定目标采光预测模型,所述评价指标包括如下的至少一项:平均相对误差、最大相对误差、均方误差和拟合度。具体的,基于采光预测模型对输入的验证样本数据进行处理得到验证结果,并基于验证结果计算得到上述至少一项评价指标。评价指标是确定目标采光预测模型的重要依据,因此,应尽可能选择多个评价指标作为确定目标采光预测模型的依据。本实施例中,基于验证样本数据对训练完成的采光预测模型中进行验证,得到各评价指标,将各采光预测模型的评价指标进行比对,以确定最优采光预测模型,所述最优采光预测模型即为目标采光预测模型。在一些实施例中,可以是将多个评价指标进行加权处理,基于加权结果对各采光预测模型的评价指标进行比对。Wherein, the evaluation index obtained by the verification process is used as the evaluation standard of the prediction effect of the daylighting prediction model, and the target daylighting prediction model is determined, and the evaluation index includes at least one of the following: average relative error, maximum relative error, mean square error and fitting Spend. Specifically, the verification result is obtained by processing the input verification sample data based on the daylighting prediction model, and the at least one evaluation index described above is calculated based on the verification result. The evaluation index is an important basis for determining the target daylighting prediction model. Therefore, as many evaluation indicators as possible should be selected as the basis for determining the target daylighting prediction model. In this embodiment, based on the verification sample data, the trained lighting prediction model is verified to obtain each evaluation index, and the evaluation indicators of each lighting prediction model are compared to determine the optimal lighting prediction model. The prediction model is the target lighting prediction model. In some embodiments, multiple evaluation indexes may be weighted, and the evaluation indexes of each lighting prediction model are compared based on the weighted result.

其中,各评价指标的计算方式如下:Among them, the calculation method of each evaluation index is as follows:

平均相对误差是模型输出值与实际值的误差绝对值占实际取值范围比例的平均值,理想值为0,数学公式:The average relative error is the average value of the absolute value of the error between the model output value and the actual value in the ratio of the actual value range. The ideal value is 0. The mathematical formula is:

Figure BDA0003647647430000091
Figure BDA0003647647430000091

最大相对误差是模型输出值与实际值的误差绝对值占实际取值范围比例的最大值,理想值为0,数学公式:The maximum relative error is the maximum value of the absolute value of the error between the model output value and the actual value in the actual value range. The ideal value is 0. The mathematical formula is:

Figure BDA0003647647430000092
Figure BDA0003647647430000092

均方误差是模型输出值与实际值误差绝对值占实际取值范围比例的均方根值,理想值为0,数学公式:The mean square error is the root mean square value of the ratio of the absolute value of the error between the model output value and the actual value to the actual value range. The ideal value is 0. The mathematical formula is:

Figure BDA0003647647430000093
Figure BDA0003647647430000093

拟合度又称拟合优度,是描述回归方程因变量和自变量之间的关系,即模型所能揭示的因变量变异性的百分比,理想值为1,数学公式:The degree of fit, also known as the goodness of fit, describes the relationship between the dependent variable and the independent variable of the regression equation, that is, the percentage of the variability of the dependent variable that the model can reveal. The ideal value is 1. The mathematical formula:

Figure BDA0003647647430000101
Figure BDA0003647647430000101

上述公式中,n是输出值的数量,i表示第i个模型输出值,Xc是模型输出值,Xc-mean是模型输出平均值,Xr是实际值,Xr-max是实际最大值,Xr-min是实际最小值。In the above formula, n is the number of output values, i is the ith model output value, X c is the model output value, X c-mean is the model output average, X r is the actual value, and X r-max is the actual maximum value. value, X r-min is the actual minimum value.

本实施例提供的技术方案,通过目标区域的气象数据和模拟时间数据设置采光模拟系统的环境参数,得到该目标区域使用的采光数据形成样本数据,该目标区域的样本数据能够训练得到适用于该目标区域内的建筑、天气、季节或者特定日期的采光预测模型,解决了现有技术中存在的模型预测不准确的问题,提高了采光预测模型的准确性和针对性,降低区域、天气变化、季节更替对训练模型的影响;通过基于训练样本数据迭代训练的方式训练采光预测模型,进一步提高了模型预测的精度;通过基于验证样本数据验证处理的方式对采光预测模型进行验证处理,能够确定出预测性能最好的采光预测模型,更进一步提高了采光预测的准确性。In the technical solution provided by this embodiment, the environmental parameters of the lighting simulation system are set by the meteorological data and the simulation time data of the target area, and the lighting data used in the target area is obtained to form sample data, and the sample data of the target area can be trained to obtain suitable lighting for the target area. The lighting forecasting model for buildings, weather, seasons or specific dates in the target area solves the problem of inaccurate model forecasting in the prior art, improves the accuracy and pertinence of the lighting forecasting model, reduces regional, weather changes, The impact of seasonal change on the training model; the daylighting prediction model is trained by iterative training based on the training sample data, which further improves the accuracy of the model prediction; The daylighting prediction model with the best prediction performance further improves the accuracy of daylighting prediction.

在上述实施例的基础上,在将获取的多组建筑参数传输至所述采光模拟系统,得到各组建筑参数对应的采光数据之前,可选的,所述方法还包括:获取所述目标区域内的多种建筑户型信息,并将所述建筑户型信息传输至所述采光模拟系统,以使所述采光模拟系统创建对应的多种建筑模型。On the basis of the above embodiment, before transmitting the acquired sets of building parameters to the lighting simulation system to obtain the lighting data corresponding to each set of building parameters, optionally, the method further includes: obtaining the target area Multiple types of building type information in the system are transmitted, and the building type information is transmitted to the lighting simulation system, so that the lighting simulation system can create corresponding multiple types of building models.

获取目标区域内使用的各种户型的户型信息,对户型信息做统计分析,得出各户型信息的使用比例,选择使用比例较高的几种户型进行采光模拟,并在采光内部系统中创建对应的建筑模型;其中,使用比例较高的标准可以是使用比例排在前5或者前10的户型,也可以是使用比例超过一定百分比的户型,具体百分比由用户根据实际需求决定。本实施例中就,基于多种建筑户型信息,以使采光模拟系统创建对应的多种建筑模型,进而得到各组建筑户型对应的各组样本数据,相应的,各组样本数据训练得到适用于目标区域内多种建筑户型进行采光预测的采光预测模型,进一步提高预测模型的针对性。Obtain the unit type information of various types of units used in the target area, perform statistical analysis on the unit type information, obtain the usage ratio of each type of information, select several types of units with higher usage ratios for lighting simulation, and create corresponding lighting in the internal system. Among them, the standard with a higher proportion of use can be the top 5 or top 10 units in the proportion of use, or it can be the type of apartment with a proportion of use exceeding a certain percentage, and the specific percentage is determined by the user according to actual needs. In this embodiment, based on a variety of building type information, the lighting simulation system creates a variety of corresponding building models, and then obtains each group of sample data corresponding to each group of building types. Correspondingly, each group of sample data is trained to obtain suitable The lighting forecasting model for lighting forecasting of various building types in the target area further improves the pertinence of the forecasting model.

可选的,将获取的多组建筑参数传输至所述采光模拟系统,得到各组建筑参数对应的采光数据,包括:将获取的多组建筑参数传输至所述采光模拟系统,以使所述采光模拟系统基于所述建筑参数更新所述多种建筑模型,并对更新后的多种建筑模型分别进行采光模拟,得到所述采光模拟系统输出的采光数据,其中,基于所述建筑参数和采光数据训练得到的采光预测模型用于对所述目标区域内的建筑进行采光预测。Optionally, transmitting the acquired sets of building parameters to the daylighting simulation system to obtain lighting data corresponding to each set of building parameters, including: transmitting the acquired sets of building parameters to the daylighting simulation system, so that the The daylighting simulation system updates the various building models based on the building parameters, and performs daylighting simulation on the updated various building models respectively, to obtain the daylighting data output by the daylighting simulation system, wherein based on the building parameters and daylighting The daylighting prediction model obtained by the data training is used to predict the daylighting of the buildings in the target area.

针对于各建筑模型,分别输入多种建筑参数,实现在建筑模型下进行不同建筑参数的采光模拟,提高了采光模拟的效率;此外,采光模拟系统在创建多种建筑模型后能够实现对多组建筑参数进行采光模拟,得到对应的多组采光数据,基于多组建筑参数与采光数据对采光预测模型进行训练,从而获得适用于整个目标区域的采光预测模型,实现对目标区域的建筑的采光预测,大幅度提高采光预测模型预测的效率,降低人工成本,减少重复创建和训练模型产生的资源浪费。For each building model, various building parameters are input respectively to realize the lighting simulation of different building parameters under the building model, which improves the efficiency of lighting simulation; The lighting simulation of building parameters is carried out to obtain the corresponding sets of lighting data, and the lighting prediction model is trained based on the multiple sets of building parameters and lighting data, so as to obtain a lighting prediction model suitable for the entire target area, and realize the lighting prediction of the buildings in the target area. , greatly improve the efficiency of daylighting prediction model prediction, reduce labor costs, and reduce the waste of resources caused by repeated creation and training of models.

在上述技术方案的基础上,所述建筑参数包括窗台高度、遮阳尺寸、墙体材料反射率、玻璃透光率;采光数据包括采光系数和自然采光照度中的至少一项。Based on the above technical solution, the building parameters include window sill height, sunshade size, wall material reflectivity, and glass light transmittance; the lighting data includes at least one of lighting coefficient and natural lighting illuminance.

可选的,所述基于所述样本数据中的训练样本数据对各所述初始采光预测模型进行迭代训练,得到各初始采光模型对应的采光预测模型,包括:基于所述建筑参数作为输入数据、所述采光系数作为标签形成的训练样本数据,对所述初始采光预测模型进行迭代训练,得到各初始采光模型对应的采光系数预测模型;和/或,基于所述建筑参数和所述采光系数作为输入数据、所述自然采光照度作为标签形成的训练样本数据,对所述初始采光预测模型进行迭代训练,得到各初始采光模型对应的采光照度预测模型。Optionally, performing iterative training on each of the initial lighting prediction models based on the training sample data in the sample data to obtain a lighting prediction model corresponding to each initial lighting model includes: using the building parameters as input data, The daylighting coefficient is used as the training sample data formed by the label, and the initial daylighting prediction model is iteratively trained to obtain the daylighting coefficient prediction model corresponding to each initial daylighting model; and/or, based on the building parameters and the daylighting coefficient as The input data and the natural lighting illuminance are used as training sample data formed by labels, and the initial lighting prediction model is iteratively trained to obtain a lighting illuminance prediction model corresponding to each initial lighting model.

以采光系数预测模型为神经网络模型为例,采光预测模型的训练过程如下:Taking the daylighting coefficient prediction model as the neural network model as an example, the training process of the daylighting prediction model is as follows:

(1)将样本数据中的一组建筑参数输入到初始神经网络采光预测模型,此时初始神经网络采光预测模型中的权值为随机量或者初始参数;(1) Input a set of building parameters in the sample data into the initial neural network lighting prediction model, and the weights in the initial neural network lighting prediction model are random quantities or initial parameters;

(2)沿着信号传播的方向计算得到初始采光预测模型的预测值;(2) Calculate the predicted value of the initial lighting prediction model along the direction of signal propagation;

(3)基于预测值和样本数据中的采光数据通过误差原理计算损失函数;(3) Calculate the loss function through the error principle based on the predicted value and the lighting data in the sample data;

(4)基于损失函数和权值调节量原理沿着信号传播的反方向对权值进行调整,得到更新的神经网络采光预测模型;(4) Adjust the weights along the reverse direction of signal propagation based on the principle of loss function and weight adjustment amount, and obtain an updated neural network lighting prediction model;

(5)对剩余的每组样本数据重复1-4的过程,直至误差不超过一定范围,得到训练完成的采光预测模型。(5) Repeat the process of 1-4 for each remaining group of sample data until the error does not exceed a certain range, and obtain a trained lighting prediction model.

以下为神经网络预测模型所遵循的误差原理和神经网络预测模型所遵循的权值调节量原理。The following is the error principle followed by the neural network prediction model and the weight adjustment principle followed by the neural network prediction model.

神经网络预测模型所遵循的误差原理为:The error principle followed by the neural network prediction model is:

以三层BP神经网络为例,设输入层节点数为n,隐藏层节点数为p,输出层节点数为m。同时,设输入层第r个节点为xr,隐藏层第q个节点为kq,输出层第t个节点为yt,各层之间的权值为ωqt,其下标表示前后两层节点的序号。同时,设训练次数(即迭代次数)为l,每一层的输入为u,输出为v。网络模型的输出向量为

Figure BDA0003647647430000121
期望输出向量为
Figure BDA0003647647430000122
Figure BDA0003647647430000131
误差向量为
Figure BDA0003647647430000132
因此第l次训练的误差:Taking the three-layer BP neural network as an example, the number of nodes in the input layer is n, the number of nodes in the hidden layer is p, and the number of nodes in the output layer is m. At the same time, let the r-th node of the input layer be x r , the q-th node of the hidden layer be k q , the t-th node of the output layer to be y t , the weight between each layer is ω qt , and the subscripts represent the two The sequence number of the layer node. At the same time, let the number of training (ie the number of iterations) be l, the input of each layer is u, and the output is v. The output vector of the network model is
Figure BDA0003647647430000121
The expected output vector is
Figure BDA0003647647430000122
Figure BDA0003647647430000131
The error vector is
Figure BDA0003647647430000132
So the error of the lth training:

et(l)=dt(l)-yt(l)e t (l)=d t (l)-y t (l)

首先是信号的正向传播。输入层的输出信号就是网络模型的输入信号。设激活函数为g(·),则隐藏层第q个结点的输入:The first is the forward propagation of the signal. The output signal of the input layer is the input signal of the network model. Let the activation function be g( ), then the input of the qth node of the hidden layer:

Figure BDA0003647647430000133
Figure BDA0003647647430000133

隐藏层第q个结点的输出:The output of the qth node of the hidden layer:

Figure BDA0003647647430000134
Figure BDA0003647647430000134

输出层第t个节点输出:The output of the t-th node of the output layer:

Figure BDA0003647647430000135
Figure BDA0003647647430000135

输出层第t个节点的误差:The error of the t-th node of the output layer:

Figure BDA0003647647430000136
Figure BDA0003647647430000136

神经网络预测模型所遵循的权值调节量原理为:The principle of weight adjustment amount followed by the neural network prediction model is:

权值沿着信号传播的反方向进行调整。根据梯度下降法,对ωqt的梯度反方向进行调整:(η为学习率)The weights are adjusted in the opposite direction of signal propagation. According to the gradient descent method, adjust the gradient of ω qt in the opposite direction: (η is the learning rate)

Figure BDA0003647647430000137
Figure BDA0003647647430000137

ωqt(l)=Δωqt(l)+ωqt(l-1)ω qt (l)=Δω qt (l)+ω qt (l-1)

在根据微分方程的链式法则,可求出梯度值:In accordance with the chain rule of differential equations, the gradient value can be found:

Figure BDA0003647647430000138
Figure BDA0003647647430000138

其权值的调节量:The adjustment amount of its weight:

Figure BDA0003647647430000141
Figure BDA0003647647430000141

其中

Figure BDA0003647647430000142
又被称为局部梯度。对于三层的BP神经网络,总结上面各式可得出如下结论,即权值的调节量是学习率、局部梯度和上一层信号输出强度的乘积。对于更为复杂多层BP神经网络,将上面计算过程进行延伸即可。in
Figure BDA0003647647430000142
Also known as local gradient. For the three-layer BP neural network, the following conclusions can be drawn from summarizing the above formulas, that is, the adjustment amount of the weight is the product of the learning rate, the local gradient and the signal output intensity of the previous layer. For more complex multi-layer BP neural networks, the above calculation process can be extended.

采光预测模型包括采光系数预测模型和采光照度预测模型,根据输入输出不同,分为以下两个预测模型:The daylighting prediction model includes a daylighting coefficient prediction model and a daylighting illuminance prediction model. According to different input and output, it is divided into the following two prediction models:

(1)采光系数预测模型:输入数据为建筑参数,建筑参数包括:窗台高度、遮阳尺寸、墙体材料反射率、玻璃透光率,输出数据为采光系数;(1) Daylighting coefficient prediction model: the input data is the building parameters, the building parameters include: window sill height, shade size, wall material reflectivity, glass light transmittance, and the output data is the daylighting coefficient;

(2)采光照度预测模型:输入数据为采光系数和建筑参数,为窗台高度、遮阳尺寸、墙体材料反射率、玻璃透光率,输出数据为采光照度;(2) Lighting illuminance prediction model: the input data is the lighting coefficient and building parameters, such as the height of the window sill, the size of the sunshade, the reflectivity of the wall material, and the light transmittance of the glass, and the output data is the lighting illuminance;

采光系数预测模型用于预测得到采光系数,采光系数可作为采光照度预测模型的输入数据之一,预测得到采光照度。The lighting coefficient prediction model is used to predict the lighting coefficient, and the lighting coefficient can be used as one of the input data of the lighting illuminance prediction model to predict the lighting illuminance.

通过训练采光系数预测模型的方式预测得到采光系数,能够提高采光系数的准确度,再以采光系数作为输入数据训练采光照度预测模型,能够经进一步提高采光照度预测模型的预测精度,进而提高预测得到的采光照度的准确度。Predicting the lighting coefficient by training the lighting coefficient prediction model can improve the accuracy of the lighting coefficient. Then, using the lighting coefficient as the input data to train the lighting illuminance prediction model, the prediction accuracy of the lighting illuminance prediction model can be further improved, and the prediction result can be further improved. The accuracy of lighting illuminance.

在上述技术方案的基础上,可选的,所述至少一个初始采光预测模型的网络结构不同,或者,至少一个初始采光预测模型的网络深度不同。其中,所述采光预测模型包括但不限于神经网络预测模型、组合预测模型、卡尔曼滤波预测模型等。创建至少一个初始采光预测模型进行训练,且初始采光预测模型的网络结构和/或网络深度不同,以神经网络预测模型为例,可以创建如下模型:Based on the above technical solutions, optionally, the network structures of the at least one initial daylighting prediction model are different, or the network depths of the at least one initial daylighting prediction model are different. Wherein, the daylighting prediction model includes, but is not limited to, a neural network prediction model, a combined prediction model, a Kalman filter prediction model, and the like. Create at least one initial daylighting prediction model for training, and the network structure and/or network depth of the initial daylighting prediction model are different. Taking the neural network prediction model as an example, the following models can be created:

(1)模型1:训练模型设置为3个隐含层结构,各层的神经元数量为[12,12,1],对应各层的激励函数分别为'purelin'、'logsig'、'purelin';(1) Model 1: The training model is set to 3 hidden layer structures, the number of neurons in each layer is [12, 12, 1], and the corresponding excitation functions of each layer are 'purelin', 'logsig', 'purelin' ';

(2)模型2:训练模型设置为4个隐含层结构,各层的神经元数量为[12,12,12,1],各层的激励函数分别为'purelin'、'tansig'、'logsig'、'purelin',重新训练模型;(2) Model 2: The training model is set to 4 hidden layer structures, the number of neurons in each layer is [12, 12, 12, 1], and the excitation functions of each layer are 'purelin', 'tansig', ' logsig', 'purelin', retrain the model;

上述2个模型中模型1与模型2的网络结构和网络深度不同,不同网络结构、不同网络深度的采光预测模型的性能、预测精度等都不相同,创建和训练尽可能多的采光预测模型,能够筛选得到性能更好的采光预测模型,提高采光预测的准确性。Among the above two models, model 1 and model 2 have different network structures and network depths, and the performance and prediction accuracy of daylighting prediction models with different network structures and network depths are different. Create and train as many daylighting prediction models as possible. The daylighting prediction model with better performance can be screened and the accuracy of daylighting prediction can be improved.

所述基于所述样本数据中的训练样本数据对各所述初始采光预测模型进行迭代训练,得到各初始采光模型对应的采光预测模型,包括:基于训练样本数据对所述初始采光预测模型进行不同训练次数的迭代训练,得到各初始采光模型对应的采光预测模型。The iterative training of each initial lighting prediction model based on the training sample data in the sample data to obtain a lighting prediction model corresponding to each initial lighting model includes: differentiating the initial lighting prediction model based on the training sample data. Iterative training for the number of training times can obtain the lighting prediction model corresponding to each initial lighting model.

以神经网络预测模型为例,可以创建如下模型:在三组独立影响的模拟数据中各随机选取约90%的数据,即60组数据,作为数据集1,对神经网络预测模型进行训练,形成训练模型0,得到采光系数的预测结果;将数据集1和训练模型0产生的采光系数的预测结果输入到训练模型X中,得到自然采光照度的预测结果;训练模型X包括训练模型1、训练模型2、训练模型3、训练模型4;训练模型1为设置为3个隐含层结构,Taking the neural network prediction model as an example, the following model can be created: randomly select about 90% of the three sets of independently affected simulated data, that is, 60 sets of data, as data set 1, and train the neural network prediction model to form Train model 0 to get the prediction result of daylighting coefficient; input the prediction result of daylighting coefficient generated by dataset 1 and training model 0 into training model X to get the prediction result of natural lighting illuminance; training model X includes training model 1, training model Model 2, training model 3, training model 4; training model 1 is set to 3 hidden layer structures,

设定获取的样本数据为68组,在样本数据中随机选取约90%的数据,即60组数据,作为训练样本数据,对神经网络预测模型进行训练,形成采光系数预测模型得到采光系数的预测结果;将采光系数预测结果和样本数据输入到以下训练模型中得到训练结果。(1)模型1:训练模型设置为3个隐含层结构,各层的神经元数量为[12,12,1],对应各层的激励函数分别为'purelin'、'logsig'、'purelin';Set the sample data obtained as 68 groups, and randomly select about 90% of the data in the sample data, that is, 60 groups of data, as the training sample data, train the neural network prediction model, and form the daylighting coefficient prediction model to obtain the prediction of the daylighting coefficient. Result; input the daylighting coefficient prediction result and sample data into the following training model to get the training result. (1) Model 1: The training model is set to 3 hidden layer structures, the number of neurons in each layer is [12, 12, 1], and the excitation functions corresponding to each layer are 'purelin', 'logsig', 'purelin' ';

(2)模型2:模型结构不变,改变训练次数;(2) Model 2: The model structure is unchanged, and the training times are changed;

(3)模型3:训练模型设置为4个隐含层结构,各层的神经元数量为[12,12,12,1],各层的激励函数分别为'purelin'、'tansig'、'logsig'、'purelin'},重新训练模型;(3) Model 3: The training model is set to 4 hidden layer structures, the number of neurons in each layer is [12, 12, 12, 1], and the excitation functions of each layer are 'purelin', 'tansig', ' logsig', 'purelin'}, retrain the model;

(4)模型4:保持模型结构不变,改变训练次数。(4) Model 4: Keep the model structure unchanged and change the training times.

将样本数据中剩余10%的数据,即8组数据,作为验证样本数据,并进行验证,如下表所示,验证后评价指标中的拟合度达0.99以上的模型即为具有准确性和稳定性的采光预测模型。通过改变采光预测模型的训练次数,使得模型更加多样化,便于选出预测精度最高的采光预测模型,提高采光预测模型的预测的准确性。The remaining 10% of the data in the sample data, that is, 8 groups of data, are used as the verification sample data and verified, as shown in the following table. Predictive model of daylighting. By changing the training times of the daylighting prediction model, the models are made more diverse, it is convenient to select the daylighting prediction model with the highest prediction accuracy, and the prediction accuracy of the daylighting prediction model is improved.

Figure BDA0003647647430000161
Figure BDA0003647647430000161

本实施例提供了一种采光预测模型的训练方法,该方法基于采光模拟软件模拟采光环境,将模拟软件获取的采光数据以及对应的建筑参数作为样本数据,基于样本数据创建、训练和验证采光预测模型,实现采光预测模型的训练。该方法通过模拟软件获取输入数据的方式,降低了人工成本,提高了采光预测模型训练的效率;同时,该方法通过创建和训练多种类型的采光预测模型,并比较选出最优采光预测模型的方式,提高了采光预测模型的预测的准确性。This embodiment provides a training method for a lighting prediction model. The method simulates a lighting environment based on a lighting simulation software, takes the lighting data obtained by the simulation software and the corresponding building parameters as sample data, and creates, trains and verifies a lighting prediction based on the sample data. model, to realize the training of the lighting prediction model. The method obtains input data by simulating software, which reduces labor costs and improves the efficiency of daylighting prediction model training; at the same time, this method creates and trains various types of daylighting prediction models, and compares and selects the optimal daylighting prediction model In this way, the prediction accuracy of the daylighting prediction model is improved.

实施例二Embodiment 2

图2是本发明实施例二提供的一种采光预测方法的流程图,本发明实施例可与上述实施例中各个可选方案可以结合。采光预测方法具体包括如下步骤:FIG. 2 is a flowchart of a lighting prediction method provided in Embodiment 2 of the present invention, and the embodiment of the present invention may be combined with each optional solution in the foregoing embodiment. The daylighting prediction method specifically includes the following steps:

S210、读取建筑模型中预设类型的建筑参数,将所述建筑参数输入至预先训练的采光系数预测模型中,得到所述建筑模型对应的采光系数;S210, reading the architectural parameters of the preset type in the architectural model, and inputting the architectural parameters into a pre-trained lighting coefficient prediction model to obtain the lighting coefficient corresponding to the architectural model;

S220、将所述建筑参数和所述采光系数输入至预先训练的采光预测模型,得到所述建筑模型对应的自然采光照度,其中,所述采光系数预测模型和所述采光预测模型分别基于本发明任意实施例所述的采光预测模型的训练方法得到。S220. Input the building parameters and the lighting coefficient into a pre-trained lighting prediction model to obtain the natural lighting illuminance corresponding to the building model, wherein the lighting coefficient prediction model and the lighting prediction model are based on the present invention respectively The training method of the daylighting prediction model described in any embodiment is obtained.

其中,建筑模型是指进行采光预测的建筑户型对应的模型,基于该建筑模型对应的区域以及建筑模型中读取的建筑参数,自动匹配对应的采光系数预测模型和采光预测模型,减少选择模型浪费的时间,加快采光预测的速度。建筑参数的类型很多,包括建筑尺寸、玻璃透光率、墙体材料反射率、窗台高度、建筑方向、墙体厚度,以及门、窗、内外墙、屋面、室内外地面、楼板的位置和材质等,但是并非所有类型的建筑参数都是采光预测时所需要的,在读取建筑模型前预设所需建筑参数的类型,能够避免读取无用的参数和对读取的参数的二次筛选,提高建筑参数获取的效率,进而提高采光预测的效率。此外,通过读取建筑模型的方式获取建筑模型的建筑参数,同样能够提高采光预测的效率。以神经网络预测模型为例,以下是一种采光预测方法的具体实现方式。Among them, the building model refers to the model corresponding to the building type for which lighting prediction is performed. Based on the area corresponding to the building model and the building parameters read in the building model, the corresponding daylighting coefficient prediction model and daylighting prediction model are automatically matched to reduce model waste. time, speeding up the speed of daylighting prediction. There are many types of building parameters, including building size, glass transmittance, wall material reflectivity, window sill height, building orientation, wall thickness, and the location and material of doors, windows, interior and exterior walls, roofs, indoor and outdoor floors, and floors etc., but not all types of building parameters are required for daylighting prediction. Presetting the type of building parameters required before reading the building model can avoid reading useless parameters and secondary screening of the read parameters. , improve the efficiency of building parameters acquisition, and then improve the efficiency of daylighting prediction. In addition, obtaining the architectural parameters of the architectural model by reading the architectural model can also improve the efficiency of daylighting prediction. Taking the neural network prediction model as an example, the following is a specific implementation of a lighting prediction method.

选择某区域典型户型A,读取户型A的建筑模型,其建筑参数包括建筑尺寸、玻璃透光率、墙体材料反射率、窗台高度、建筑方向,以及门、窗、内外墙、屋面、室内外地面、楼板的位置和材质;选定户型A所在区域,匹配与建筑参数和选定区域相适应的采光系数预测模型,将建筑参数输入至采光系数预测模型,预测得到采光系数;同样的,匹配与建筑参数和选定区域相适应的采光预测模型,将预测得到的采光系数和建筑参数输入到采光预测模型中,得到自然采光照度。选择其他户型进行上述操作,同样能够得到该户型的自然采光照度。Select a typical apartment type A in a certain area, read the building model of apartment type A, and its architectural parameters include building size, glass transmittance, wall material reflectivity, window sill height, building direction, as well as doors, windows, interior and exterior walls, roofs, interiors The location and material of the outer ground and floor slab; select the area where the unit type A is located, match the lighting coefficient prediction model suitable for the building parameters and the selected area, input the building parameters into the lighting coefficient prediction model, and predict the lighting coefficient; similarly, Match the daylighting prediction model suitable for the building parameters and the selected area, and input the predicted daylighting coefficient and building parameters into the daylighting prediction model to obtain the natural daylighting illuminance. Select other units to perform the above operations, and you can also get the natural lighting illumination of this unit.

本实施例所提供的采光预测方法是基于采光预测模型训练方法得到的采光预测模型实现的,该采光预测方法具备上述任一实施例所提供的采光预测模型训练方法中采光预测模型所具备的所有有益效果。The daylighting prediction method provided in this embodiment is realized based on the daylighting prediction model obtained by the daylighting prediction model training method, and the daylighting prediction method includes all the lighting prediction models in the daylighting prediction model training method provided by any of the above embodiments. beneficial effect.

实施例三Embodiment 3

图3是本发明实施例三提供的一种采光预测模型训练装置的结构示意图。该装置包括:样本数据获取模块310、采光预测模型训练模块320、目标采光预测模型确定模块330。FIG. 3 is a schematic structural diagram of a lighting prediction model training device provided in Embodiment 3 of the present invention. The device includes: a sample data acquisition module 310 , a lighting prediction model training module 320 , and a target lighting prediction model determination module 330 .

样本数据获取模块310用于获取目标区域的气象数据、模拟时间数据,传输至采光模拟系统中设置采光模拟的环境参数,将获取的多组建筑参数传输至所述采光模拟系统,得到各组建筑参数对应的采光数据,其中,所述建筑参数和对应的采光数据形成样本数据。The sample data acquisition module 310 is used to acquire the meteorological data and simulation time data of the target area, transmit them to the daylighting simulation system to set the environmental parameters of the daylighting simulation, and transmit the acquired sets of building parameters to the daylighting simulation system to obtain each group of buildings. The lighting data corresponding to the parameters, wherein the building parameters and the corresponding lighting data form sample data.

采光预测模型训练模块320用于创建至少一个初始采光预测模型,基于所述样本数据中的训练样本数据对各所述初始采光预测模型进行迭代训练,得到各初始采光模型对应的采光预测模型。The daylighting prediction model training module 320 is configured to create at least one initial daylighting prediction model, perform iterative training on each of the initial daylighting prediction models based on the training sample data in the sample data, and obtain a daylighting prediction model corresponding to each initial daylighting model.

目标采光预测模型确定模块330基于所述样本数据中的验证样本数据对所述采光预测模型进行验证处理,得到各采光预测模型的至少一项评价指标,基于所述至少一项评价指标确定目标采光预测模型。The target daylighting prediction model determination module 330 performs verification processing on the daylighting prediction model based on the verification sample data in the sample data, obtains at least one evaluation index of each daylighting prediction model, and determines the target daylighting based on the at least one evaluation index prediction model.

可选的,在将获取的多组建筑参数传输至所述采光模拟系统,得到各组建筑参数对应的采光数据之前,所述装置还包括:Optionally, before transmitting the acquired multiple sets of building parameters to the lighting simulation system to obtain lighting data corresponding to each set of building parameters, the device further includes:

多种建筑模型创建单元用于获取所述目标区域内的多种建筑户型信息,并将所述建筑户型信息传输至所述采光模拟系统,以使所述采光模拟系统创建对应的多种建筑模型。The multiple building model creation unit is used for acquiring multiple building type information in the target area, and transmitting the building type information to the lighting simulation system, so that the lighting simulation system creates corresponding multiple building models .

所述将获取的多组建筑参数传输至所述采光模拟系统,得到各组建筑参数对应的采光数据,包括:The acquired multiple sets of building parameters are transmitted to the lighting simulation system to obtain lighting data corresponding to each set of building parameters, including:

采光数据获取单元用于将获取的多组建筑参数传输至所述采光模拟系统,以使所述采光模拟系统基于所述建筑参数更新所述多种建筑模型,并对更新后的多种建筑模型分别进行采光模拟,得到所述采光模拟系统输出的采光数据,其中,基于所述建筑参数和采光数据训练得到的采光预测模型用于对所述目标区域内的建筑进行采光预测。The daylighting data acquisition unit is used to transmit the acquired sets of building parameters to the daylighting simulation system, so that the daylighting simulation system updates the various building models based on the building parameters, and updates the various building models after updating. The lighting simulation is performed respectively to obtain the lighting data output by the lighting simulation system, wherein the lighting prediction model obtained by training based on the building parameters and the lighting data is used to predict the lighting of the buildings in the target area.

可选的,所述建筑参数包括窗台高度、遮阳尺寸、墙体材料反射率、玻璃透光率;采光数据包括采光系数和自然采光照度中的至少一项。Optionally, the architectural parameters include window sill height, shade size, wall material reflectivity, and glass light transmittance; the lighting data includes at least one of a lighting coefficient and natural lighting illuminance.

所述基于所述样本数据中的训练样本数据对各所述初始采光预测模型进行迭代训练,得到各初始采光模型对应的采光预测模型,包括:The iterative training is performed on each of the initial lighting prediction models based on the training sample data in the sample data to obtain a lighting prediction model corresponding to each initial lighting model, including:

采光系数预测模型训练单元用于基于所述建筑参数作为输入数据、所述采光系数作为标签形成的训练样本数据,对所述初始采光预测模型进行迭代训练,得到各初始采光模型对应的采光系数预测模型。和/或,The daylighting coefficient prediction model training unit is configured to perform iterative training on the initial daylighting prediction model based on the building parameters as input data and the daylighting coefficient as training sample data formed by labels, and obtain the daylighting coefficient predictions corresponding to each initial daylighting model Model. and / or,

采光照度预测模型训练单元基于所述建筑参数和所述采光系数作为输入数据、所述自然采光照度作为标签形成的训练样本数据,对所述初始采光预测模型进行迭代训练,得到各初始采光模型对应的采光照度预测模型。The lighting illuminance prediction model training unit performs iterative training on the initial lighting prediction model based on the building parameters and the lighting coefficient as input data, and the natural lighting illuminance as the training sample data formed by the label, and obtains the corresponding initial lighting models. The lighting illuminance prediction model.

可选的,所述至少一个初始采光预测模型的网络结构不同,或者,至少一个初始采光预测模型的网络深度不同。Optionally, the network structure of the at least one initial daylighting prediction model is different, or the network depth of the at least one initial daylighting prediction model is different.

所述基于所述样本数据中的训练样本数据对各所述初始采光预测模型进行迭代训练,得到各初始采光模型对应的采光预测模型,包括:The iterative training is performed on each of the initial lighting prediction models based on the training sample data in the sample data to obtain a lighting prediction model corresponding to each initial lighting model, including:

采光预测模型训练单元用于基于训练样本数据对所述初始采光预测模型进行不同训练次数的迭代训练,得到各初始采光模型对应的采光预测模型。The daylighting prediction model training unit is configured to perform iterative training on the initial daylighting prediction model with different training times based on the training sample data, and obtain a daylighting prediction model corresponding to each initial daylighting model.

可选的,所述评价指标包括如下的至少一项:平均相对误差、最大相对误差、均方误差和拟合度。Optionally, the evaluation index includes at least one of the following: average relative error, maximum relative error, mean square error, and goodness of fit.

本实施例所提供的采光预测模型训练装置可执行本发明任意实施例所提供的采光预测模型训练方法,具备执行方法相应的功能模块和有益效果。The daylighting prediction model training device provided in this embodiment can execute the daylighting prediction model training method provided by any embodiment of the present invention, and has functional modules and beneficial effects corresponding to the execution method.

实施例四Embodiment 4

图4是本发明实施例四提供的一种采光预测装置的结构示意图。该装置包括:采光系数预测模块410和自然采光照度预测模块420。FIG. 4 is a schematic structural diagram of a lighting prediction device provided in Embodiment 4 of the present invention. The device includes: a lighting coefficient prediction module 410 and a natural lighting illumination prediction module 420 .

采光系数预测模块410用于读取建筑模型中预设类型的建筑参数,将所述建筑参数输入至预先训练的采光系数预测模型中,得到所述建筑模型对应的采光系数。The daylighting coefficient prediction module 410 is configured to read the building parameters of a preset type in the building model, input the building parameters into the pre-trained daylighting coefficient prediction model, and obtain the daylighting coefficient corresponding to the building model.

自然采光照度预测模块420用于将所述建筑参数和所述采光系数输入至预先训练的采光预测模型,得到所述建筑模型对应的自然采光照度,其中,所述采光系数预测模型和所述采光预测模型分别基于本发明任意实施例所述的采光预测模型的训练方法得到。The natural daylighting illuminance prediction module 420 is configured to input the building parameters and the daylighting coefficient into a pre-trained daylighting prediction model to obtain the natural daylighting illuminance corresponding to the building model, wherein the daylighting coefficient prediction model and the daylighting The prediction models are respectively obtained based on the training method of the daylighting prediction model described in any embodiment of the present invention.

本实施例提供的采光预测装置可执行本发明任意实施例所提供的采光预测方法,具备执行方法相应的功能模块和有益效果。The daylighting prediction device provided in this embodiment can execute the daylighting prediction method provided by any embodiment of the present invention, and has functional modules and beneficial effects corresponding to the execution method.

实施例五Embodiment 5

图5示出了可以用来实施本发明的实施例的电子设备10的结构示意图。电子设备旨在表示各种形式的数字计算机,诸如,膝上型计算机、台式计算机、工作台、个人数字助理、服务器、刀片式服务器、大型计算机、和其它适合的计算机。电子设备还可以表示各种形式的移动装置,诸如,个人数字处理、蜂窝电话、智能电话、可穿戴设备(如头盔、眼镜、手表等)和其它类似的计算装置。本文所示的部件、它们的连接和关系、以及它们的功能仅仅作为示例,并且不意在限制本文中描述的和/或者要求的本发明的实现。FIG. 5 shows a schematic structural diagram of an electronic device 10 that can be used to implement embodiments of the present invention. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. Electronic devices may also represent various forms of mobile devices, such as personal digital processors, cellular phones, smart phones, wearable devices (eg, helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions are by way of example only, and are not intended to limit implementations of the inventions described and/or claimed herein.

如图5所示,电子设备10包括至少一个处理器11,以及与至少一个处理器11通信连接的存储器,如只读存储器(ROM)12、随机访问存储器(RAM)13等,其中,存储器存储有可被至少一个处理器执行的计算机程序,处理器11可以根据存储在只读存储器(ROM)12中的计算机程序或者从存储单元18加载到随机访问存储器(RAM)13中的计算机程序,来执行各种适当的动作和处理。在RAM 13中,还可存储电子设备10操作所需的各种程序和数据。处理器11、ROM 12以及RAM 13通过总线14彼此相连。输入/输出(I/O)接口15也连接至总线14。As shown in FIG. 5, the electronic device 10 includes at least one processor 11, and a memory, such as a read only memory (ROM) 12, a random access memory (RAM) 13, etc., connected in communication with the at least one processor 11, wherein the memory stores There is a computer program executable by at least one processor, and the processor 11 can be executed according to a computer program stored in a read only memory (ROM) 12 or loaded from a storage unit 18 into a random access memory (RAM) 13. Various appropriate actions and processes are performed. In the RAM 13, various programs and data necessary for the operation of the electronic device 10 can also be stored. The processor 11 , the ROM 12 , and the RAM 13 are connected to each other through a bus 14 . An input/output (I/O) interface 15 is also connected to the bus 14 .

电子设备10中的多个部件连接至I/O接口15,包括:输入单元16,例如键盘、鼠标等;输出单元17,例如各种类型的显示器、扬声器等;存储单元18,例如磁盘、光盘等;以及通信单元19,例如网卡、调制解调器、无线通信收发机等。通信单元19允许电子设备10通过诸如因特网的计算机网络和/或各种电信网络与其他设备交换信息/数据。Various components in the electronic device 10 are connected to the I/O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a magnetic disk, an optical disk, etc. etc.; and a communication unit 19, such as a network card, modem, wireless communication transceiver, and the like. The communication unit 19 allows the electronic device 10 to exchange information/data with other devices through a computer network such as the Internet and/or various telecommunication networks.

处理器11可以是各种具有处理和计算能力的通用和/或专用处理组件。处理器11的一些示例包括但不限于中央处理单元(CPU)、图形处理单元(GPU)、各种专用的人工智能(AI)计算芯片、各种运行机器学习模型算法的处理器、数字信号处理器(DSP)、以及任何适当的处理器、控制器、微控制器等。处理器11执行上文所描述的各个方法和处理,例如采光预测模型训练方法和/或采光预测方法。The processor 11 may be various general and/or special purpose processing components having processing and computing capabilities. Some examples of processors 11 include, but are not limited to, central processing units (CPUs), graphics processing units (GPUs), various specialized artificial intelligence (AI) computing chips, various processors that run machine learning model algorithms, digital signal processing processor (DSP), and any suitable processor, controller, microcontroller, etc. The processor 11 performs the various methods and processes described above, such as the daylighting prediction model training method and/or the daylighting prediction method.

在一些实施例中,采光预测模型训练方法和/或采光预测方法可被实现为计算机程序,其被有形地包含于计算机可读存储介质,例如存储单元18。在一些实施例中,计算机程序的部分或者全部可以经由ROM 12和/或通信单元19而被载入和/或安装到电子设备10上。当计算机程序加载到RAM 13并由处理器11执行时,可以执行上文描述的采光预测模型训练方法和/或采光预测方法的一个或多个步骤。备选地,在其他实施例中,处理器11可以通过其他任何适当的方式(例如,借助于固件)而被配置为执行采光预测模型训练方法和/或采光预测方法。In some embodiments, the daylighting prediction model training method and/or the daylighting prediction method may be implemented as a computer program tangibly embodied in a computer-readable storage medium, such as storage unit 18 . In some embodiments, part or all of the computer program may be loaded and/or installed on the electronic device 10 via the ROM 12 and/or the communication unit 19 . When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the daylighting prediction model training method and/or the daylighting prediction method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the daylighting prediction model training method and/or the daylighting prediction method by any other suitable means (eg, by means of firmware).

本文中以上描述的系统和技术的各种实施方式可以在数字电子电路系统、集成电路系统、场可编程门阵列(FPGA)、专用集成电路(ASIC)、专用标准产品(ASSP)、芯片上系统的系统(SOC)、负载可编程逻辑设备(CPLD)、计算机硬件、固件、软件、和/或它们的组合中实现。这些各种实施方式可以包括:实施在一个或者多个计算机程序中,该一个或者多个计算机程序可在包括至少一个可编程处理器的可编程系统上执行和/或解释,该可编程处理器可以是专用或者通用可编程处理器,可以从存储系统、至少一个输入装置、和至少一个输出装置接收数据和指令,并且将数据和指令传输至该存储系统、该至少一个输入装置、和该至少一个输出装置。Various implementations of the systems and techniques described herein above may be implemented in digital electronic circuitry, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips system (SOC), load programmable logic device (CPLD), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include being implemented in one or more computer programs executable and/or interpretable on a programmable system including at least one programmable processor that The processor, which may be a special purpose or general-purpose programmable processor, may receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device an output device.

用于实施本发明的方法的计算机程序可以采用一个或多个编程语言的任何组合来编写。这些计算机程序可以提供给通用计算机、专用计算机或其他可编程数据处理装置的处理器,使得计算机程序当由处理器执行时使流程图和/或框图中所规定的功能/操作被实施。计算机程序可以完全在机器上执行、部分地在机器上执行,作为独立软件包部分地在机器上执行且部分地在远程机器上执行或完全在远程机器或服务器上执行。Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general purpose computer, special purpose computer or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions/operations specified in the flowcharts and/or block diagrams to be carried out. The computer program may execute entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine or entirely on the remote machine or server.

在本发明的上下文中,计算机可读存储介质可以是有形的介质,其可以包含或存储以供指令执行系统、装置或设备使用或与指令执行系统、装置或设备结合地使用的计算机程序。计算机可读存储介质可以包括但不限于电子的、磁性的、光学的、电磁的、红外的、或半导体系统、装置或设备,或者上述内容的任何合适组合。备选地,计算机可读存储介质可以是机器可读信号介质。机器可读存储介质的更具体示例会包括基于一个或多个线的电气连接、便携式计算机盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦除可编程只读存储器(EPROM或快闪存储器)、光纤、便捷式紧凑盘只读存储器(CD-ROM)、光学储存设备、磁储存设备、或上述内容的任何合适组合。In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in connection with the instruction execution system, apparatus or device. Computer-readable storage media may include, but are not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or devices, or any suitable combination of the foregoing. Alternatively, the computer-readable storage medium may be a machine-readable signal medium. More specific examples of machine-readable storage media would include one or more wire-based electrical connections, portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), erasable programmable read only memory (EPROM or flash memory), fiber optics, compact disk read only memory (CD-ROM), optical storage, magnetic storage, or any suitable combination of the foregoing.

为了提供与用户的交互,可以在电子设备上实施此处描述的系统和技术,该电子设备具有:用于向用户显示信息的显示装置(例如,CRT(阴极射线管)或者LCD(液晶显示器)监视器);以及键盘和指向装置(例如,鼠标或者轨迹球),用户可以通过该键盘和该指向装置来将输入提供给电子设备。其它种类的装置还可以用于提供与用户的交互;例如,提供给用户的反馈可以是任何形式的传感反馈(例如,视觉反馈、听觉反馈、或者触觉反馈);并且可以用任何形式(包括声输入、语音输入或者、触觉输入)来接收来自用户的输入。To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having a display device (eg, a CRT (cathode ray tube) or an LCD (liquid crystal display)) for displaying information to the user monitor); and a keyboard and pointing device (eg, a mouse or trackball) through which a user can provide input to the electronic device. Other kinds of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (eg, visual feedback, auditory feedback, or tactile feedback); and can be in any form (including acoustic input, voice input, or tactile input) to receive input from the user.

可以将此处描述的系统和技术实施在包括后台部件的计算系统(例如,作为数据服务器)、或者包括中间件部件的计算系统(例如,应用服务器)、或者包括前端部件的计算系统(例如,具有图形用户界面或者网络浏览器的用户计算机,用户可以通过该图形用户界面或者该网络浏览器来与此处描述的系统和技术的实施方式交互)、或者包括这种后台部件、中间件部件、或者前端部件的任何组合的计算系统中。可以通过任何形式或者介质的数字数据通信(例如,通信网络)来将系统的部件相互连接。通信网络的示例包括:局域网(LAN)、广域网(WAN)、区块链网络和互联网。The systems and techniques described herein may be implemented on a computing system that includes back-end components (eg, as a data server), or a computing system that includes middleware components (eg, an application server), or a computing system that includes front-end components (eg, a user's computer having a graphical user interface or web browser through which a user may interact with implementations of the systems and techniques described herein), or including such backend components, middleware components, Or any combination of front-end components in a computing system. The components of the system may be interconnected by any form or medium of digital data communication (eg, a communication network). Examples of communication networks include: Local Area Networks (LANs), Wide Area Networks (WANs), blockchain networks, and the Internet.

计算系统可以包括客户端和服务器。客户端和服务器一般远离彼此并且通常通过通信网络进行交互。通过在相应的计算机上运行并且彼此具有客户端-服务器关系的计算机程序来产生客户端和服务器的关系。服务器可以是云服务器,又称为云计算服务器或云主机,是云计算服务体系中的一项主机产品,以解决了传统物理主机与VPS服务中,存在的管理难度大,业务扩展性弱的缺陷。A computing system can include clients and servers. Clients and servers are generally remote from each other and usually interact through a communication network. The relationship of client and server arises by computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also known as a cloud computing server or a cloud host. It is a host product in the cloud computing service system to solve the traditional physical host and VPS services, which are difficult to manage and weak in business scalability. defect.

应该理解,可以使用上面所示的各种形式的流程,重新排序、增加或删除步骤。例如,本发明中记载的各步骤可以并行地执行也可以顺序地执行也可以不同的次序执行,只要能够实现本发明的技术方案所期望的结果,本文在此不进行限制。It should be understood that steps may be reordered, added or deleted using the various forms of flow shown above. For example, the steps described in the present invention can be performed in parallel, sequentially or in different orders, and as long as the desired results of the technical solutions of the present invention can be achieved, no limitation is imposed herein.

上述具体实施方式,并不构成对本发明保护范围的限制。本领域技术人员应该明白的是,根据设计要求和其他因素,可以进行各种修改、组合、子组合和替代。任何在本发明的精神和原则之内所作的修改、等同替换和改进等,均应包含在本发明保护范围之内。The above-mentioned specific embodiments do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modifications, equivalent replacements and improvements made within the spirit and principle of the present invention shall be included within the protection scope of the present invention.

注意,上述仅为本发明的较佳实施例及所运用技术原理。本领域技术人员会理解,本发明不限于这里所述的特定实施例,对本领域技术人员来说能够进行各种明显的变化、重新调整和替代而不会脱离本发明的保护范围。因此,虽然通过以上实施例对本发明进行了较为详细的说明,但是本发明不仅仅限于以上实施例,在不脱离本发明构思的情况下,还可以包括更多其他等效实施例,而本发明的范围由所附的权利要求范围决定。Note that the above are only preferred embodiments of the present invention and applied technical principles. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the protection scope of the present invention. Therefore, although the present invention has been described in detail through the above embodiments, the present invention is not limited to the above embodiments, and can also include more other equivalent embodiments without departing from the concept of the present invention. The scope is determined by the scope of the appended claims.

Claims (10)

1. A method for training a lighting prediction model, comprising:
acquiring meteorological data and simulation time data of a target area, transmitting the meteorological data and the simulation time data to a lighting simulation system to set lighting simulation environment parameters, transmitting multiple groups of acquired building parameters to the lighting simulation system to obtain lighting data corresponding to the building parameters, wherein the building parameters and the corresponding lighting data form sample data;
creating at least one initial lighting prediction model, and performing iterative training on each initial lighting prediction model based on training sample data in the sample data to obtain a lighting prediction model corresponding to each initial lighting model;
and verifying the lighting prediction model based on verification sample data in the sample data to obtain at least one evaluation index of each lighting prediction model, and determining a target lighting prediction model based on the at least one evaluation index.
2. The method of claim 1, wherein before transmitting the plurality of sets of acquired building parameters to the lighting simulation system to obtain lighting data corresponding to each set of building parameters, the method further comprises:
acquiring various building house type information in the target area, and transmitting the building house type information to the lighting simulation system so that the lighting simulation system creates various corresponding building models;
the method for acquiring the lighting data comprises the following steps of transmitting the acquired multiple groups of building parameters to the lighting simulation system to obtain the lighting data corresponding to the building parameters, wherein the lighting data comprises:
and transmitting the acquired multiple groups of building parameters to the lighting simulation system so that the lighting simulation system updates the multiple building models based on the building parameters, and respectively performs lighting simulation on the multiple updated building models to obtain lighting data output by the lighting simulation system, wherein a lighting prediction model trained based on the building parameters and the lighting data is used for lighting prediction of the buildings in the target area.
3. The method of claim 1 or 2, wherein the building parameters include sill height, shade size, wall material reflectivity, glass transmittance; the lighting data includes at least one of a lighting coefficient and a natural lighting illuminance;
the iterative training of each initial lighting prediction model based on training sample data in the sample data to obtain a lighting prediction model corresponding to each initial lighting model comprises:
performing iterative training on the initial lighting prediction model based on training sample data formed by taking the building parameters as input data and the lighting coefficient as a label to obtain a lighting coefficient prediction model corresponding to each initial lighting model; and/or the presence of a gas in the atmosphere,
and performing iterative training on the initial lighting prediction model based on training sample data formed by taking the building parameters and the lighting coefficient as input data and taking the natural lighting illumination as a label to obtain a lighting illumination prediction model corresponding to each initial lighting model.
4. The method according to claim 1, wherein the network structure of the at least one initial lighting prediction model is different, or the network depth of the at least one initial lighting prediction model is different;
the iterative training of each initial lighting prediction model based on training sample data in the sample data to obtain a lighting prediction model corresponding to each initial lighting model comprises:
and performing iterative training on the initial lighting prediction model for different training times based on training sample data to obtain the lighting prediction model corresponding to each initial lighting model.
5. The method of claim 1, wherein the evaluation index comprises at least one of: average relative error, maximum relative error, mean square error, and fitness.
6. A lighting prediction method comprising:
reading building parameters of a preset type in a building model, and inputting the building parameters into a pre-trained lighting coefficient prediction model to obtain a lighting coefficient corresponding to the building model;
inputting the building parameters and the lighting coefficient into a lighting prediction model trained in advance to obtain the natural lighting illumination corresponding to the building model, wherein the lighting coefficient prediction model and the lighting prediction model are obtained based on the training method of the lighting prediction model according to any one of claims 1 to 5.
7. A lighting prediction model training device, comprising:
the sample data acquisition module is used for acquiring meteorological data and simulation time data of a target area, transmitting the meteorological data and the simulation time data to a lighting simulation system to set lighting simulation environment parameters, transmitting multiple groups of acquired building parameters to the lighting simulation system, and acquiring lighting data corresponding to the building parameters, wherein the building parameters and the corresponding lighting data form sample data;
the lighting prediction model training module is used for creating at least one initial lighting prediction model, and performing iterative training on each initial lighting prediction model based on training sample data in the sample data to obtain a lighting prediction model corresponding to each initial lighting model;
and the target lighting prediction model determining module is used for verifying the lighting prediction model based on verification sample data in the sample data to obtain at least one evaluation index of each lighting prediction model, and determining the target lighting prediction model based on the at least one evaluation index.
8. A lighting prediction device, comprising:
the lighting coefficient prediction module is used for reading building parameters of preset types in a building model, inputting the building parameters into a lighting coefficient prediction model trained in advance, and obtaining a lighting coefficient corresponding to the building model;
and the natural lighting illumination prediction module is used for inputting the building parameters and the lighting coefficient into a lighting prediction model which is trained in advance to obtain the natural lighting illumination corresponding to the building model, wherein the lighting coefficient prediction model and the lighting prediction model are respectively obtained based on the training method of the lighting prediction model of any one of claims 1 to 5.
9. An electronic device, characterized in that the electronic device comprises:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the light prediction model training method of any one of claims 1-5 and/or the light prediction method of claim 6.
10. A computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions for causing a processor to implement the lighting prediction model training method of any one of claims 1-5 and/or the lighting prediction method of claim 6 when executed.
CN202210539318.1A 2022-05-17 2022-05-17 Lighting prediction model training method, lighting prediction method, device and equipment Pending CN114970133A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210539318.1A CN114970133A (en) 2022-05-17 2022-05-17 Lighting prediction model training method, lighting prediction method, device and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210539318.1A CN114970133A (en) 2022-05-17 2022-05-17 Lighting prediction model training method, lighting prediction method, device and equipment

Publications (1)

Publication Number Publication Date
CN114970133A true CN114970133A (en) 2022-08-30

Family

ID=82982894

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210539318.1A Pending CN114970133A (en) 2022-05-17 2022-05-17 Lighting prediction model training method, lighting prediction method, device and equipment

Country Status (1)

Country Link
CN (1) CN114970133A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118469521A (en) * 2024-07-10 2024-08-09 中川建投集团有限公司 Building construction engineering safety control system

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111259481A (en) * 2020-01-21 2020-06-09 哈尔滨工业大学 A design evaluation method and device for building indoor light environment integrating spatial information

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111259481A (en) * 2020-01-21 2020-06-09 哈尔滨工业大学 A design evaluation method and device for building indoor light environment integrating spatial information

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
洪梅,魏世辉: "基于Ecotect的建筑采光节能模拟分析", 九江学院学报, no. 04, 20 December 2019 (2019-12-20), pages 27 - 29 *
蒋佳欣,王博,王猛,蔡宋刚,倪婷,敖仪斌,刘燕: "基于BIM技术和BP神经网络的成都理工大学图书馆天然采光研究", 土木建筑工程信息技术, vol. 12, no. 1, 29 February 2020 (2020-02-29), pages 30 - 37 *
蒋佳欣;王博;王猛;蔡宋刚;倪婷;敖仪斌;刘燕;: "基于BIM技术和BP神经网络的成都理工大学图书馆天然采光研究", 土木建筑工程信息技术, no. 01, 31 December 2020 (2020-12-31), pages 171 - 177 *
谢斌;胡望社;姚建政;: "基于Ecotect的建筑遮阳采光节能设计优化策略", 建筑节能, no. 12, 25 December 2017 (2017-12-25), pages 50 - 56 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118469521A (en) * 2024-07-10 2024-08-09 中川建投集团有限公司 Building construction engineering safety control system

Similar Documents

Publication Publication Date Title
Si et al. Multi-objective optimization design of a complex building based on an artificial neural network and performance evaluation of algorithms
Brown et al. Design for structural and energy performance of long span buildings using geometric multi-objective optimization
CN108172301B (en) A method and system for predicting the epidemic situation of mosquito-borne infectious diseases based on gradient boosting trees
Yang et al. Multiobjective optimization design of green building envelope material using a non-dominated sorting genetic algorithm
Michael et al. Lighting performance of urban vernacular architecture in the East-Mediterranean area: Field study and simulation analysis
CN109359166B (en) A synchronous calculation method of spatial growth dynamic simulation and driving force factor contribution
Zhao et al. BIM-based multi-objective optimization of low-carbon and energy-saving buildings
Mao et al. Optimization-aided calibration of an urban microclimate model under uncertainty
CN108399470B (en) An indoor PM2.5 prediction method based on multi-instance genetic neural network
Huang et al. Research on urban modern architectural art based on artificial intelligence and GIS image recognition system
Škrjanc et al. Theoretical and experimental FUZZY modelling of building thermal dynamic response
Qu et al. Comparison analysis on simplification methods of building performance optimization for passive building design
CN114065646B (en) Energy consumption prediction method based on hybrid optimization algorithm, cloud computing platform and system
Liu et al. BIM-based building performance assessment of green buildings-A case study from China
CN106529185A (en) Historic building displacement combined prediction method and system
CN115795638A (en) Residential area layout optimization design method, system and storage medium
CN114970133A (en) Lighting prediction model training method, lighting prediction method, device and equipment
Shen et al. Utilizing interpretable stacking ensemble learning and NSGA-III for the prediction and optimisation of building photo-thermal environment and energy consumption
De Luca et al. Ten questions concerning environmental architectural design exploration
CN110704892B (en) Method and system for calculating cooling load of air conditioner
Wang et al. An integrated climate-based daylight performance evaluation framework for indoor arenas' roof system
WO2024069268A1 (en) Intelligent platform for designing and drawing construction plans based on data mining and artificial intelligence
Wang et al. Thermal performance optimization for housing unit design in a cold region of China
CN117634319A (en) Building light environment optimization method and device and electronic equipment
CN116663744A (en) Energy consumption prediction method and system for near-zero energy consumption building

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