CN112734600B - A personalized smart lighting method for hotels based on mobile phone APP - Google Patents
A personalized smart lighting method for hotels based on mobile phone APP Download PDFInfo
- Publication number
- CN112734600B CN112734600B CN202011469219.8A CN202011469219A CN112734600B CN 112734600 B CN112734600 B CN 112734600B CN 202011469219 A CN202011469219 A CN 202011469219A CN 112734600 B CN112734600 B CN 112734600B
- Authority
- CN
- China
- Prior art keywords
- user
- modulation
- value
- vector
- lamp
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 40
- 239000013598 vector Substances 0.000 claims abstract description 127
- 238000012790 confirmation Methods 0.000 claims abstract description 3
- 230000008569 process Effects 0.000 claims description 13
- 238000004364 calculation method Methods 0.000 claims description 5
- 230000000694 effects Effects 0.000 abstract description 4
- 238000004458 analytical method Methods 0.000 description 22
- 238000004891 communication Methods 0.000 description 6
- 238000010586 diagram Methods 0.000 description 4
- 238000012545 processing Methods 0.000 description 4
- 230000007774 longterm Effects 0.000 description 3
- 230000000366 juvenile effect Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000009825 accumulation Methods 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q50/00—Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
- G06Q50/10—Services
- G06Q50/12—Hotels or restaurants
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q30/00—Commerce
- G06Q30/02—Marketing; Price estimation or determination; Fundraising
- G06Q30/0201—Market modelling; Market analysis; Collecting market data
- G06Q30/0202—Market predictions or forecasting for commercial activities
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02B—CLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
- Y02B20/00—Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
- Y02B20/40—Control techniques providing energy savings, e.g. smart controller or presence detection
Landscapes
- Business, Economics & Management (AREA)
- Engineering & Computer Science (AREA)
- Strategic Management (AREA)
- Development Economics (AREA)
- Tourism & Hospitality (AREA)
- Finance (AREA)
- Accounting & Taxation (AREA)
- Marketing (AREA)
- Entrepreneurship & Innovation (AREA)
- Physics & Mathematics (AREA)
- General Business, Economics & Management (AREA)
- General Physics & Mathematics (AREA)
- Economics (AREA)
- Theoretical Computer Science (AREA)
- Human Resources & Organizations (AREA)
- Data Mining & Analysis (AREA)
- Primary Health Care (AREA)
- General Health & Medical Sciences (AREA)
- Health & Medical Sciences (AREA)
- Game Theory and Decision Science (AREA)
- Circuit Arrangement For Electric Light Sources In General (AREA)
Abstract
本发明提供一种基于手机APP的酒店个性化智能照明方法,入住登记与信息采集后,对用户个人特性数据进行按模糊分类得出特性隶属度值,对调光指令分析获得各灯调制值,又基于用户特性隶属度值向量、灯调制向量与数据库中历史入住用户数据进行对比,根据向量间的相似度,对用户偏好的灯调制向量进行推测,推测结果推送给用户并在确认后,通过输出模块向可调光灯组发送调光指令。本发明依据用户个体特性及调光操作的相似性来对其入住客房中未操作过灯具的调光偏好进行推测,能快速向用户推送其可能感兴趣的照明效果,从而实现个性化智能照明推荐与决策。
The invention provides a hotel personalized intelligent lighting method based on a mobile phone APP. After check-in registration and information collection, the user's personal characteristic data is fuzzy classified to obtain the characteristic membership value, and the dimming instructions are analyzed to obtain the modulation value of each lamp. Based on the comparison of the user characteristic membership value vector and the light modulation vector with the historical occupancy user data in the database, the user's preferred light modulation vector is inferred based on the similarity between the vectors. The inference results are pushed to the user and after confirmation, the user's preferred light modulation vector is The output module sends dimming instructions to the dimmable light group. This invention infers the dimming preferences of unoperated lamps in the guest rooms based on the user's individual characteristics and similarities in dimming operations, and can quickly push the lighting effects that the user may be interested in, thereby realizing personalized intelligent lighting recommendations. and decision-making.
Description
本申请为申请号201910287080.6、申请日2019年04月03日、发明名称“一种基于手机APP的酒店个性化智能照明装置、系统及方法”的分案申请。This application is a divisional application with application number 201910287080.6, application date April 3, 2019, and invention title "A hotel personalized intelligent lighting device, system and method based on mobile phone APP".
技术领域Technical field
本发明专利涉及一种基于手机APP的酒店个性化智能照明方法,属于智能照明领域。The patent of this invention relates to a hotel personalized intelligent lighting method based on a mobile phone APP, which belongs to the field of intelligent lighting.
背景技术Background technique
随着LED智能照明技术的渐趋成熟,LED智能照明的普及率越来越高。其优势在于,高效、节能且照明方式更具多样性,可以根据不同场景需求,实时切换照明效果,更具人性化。酒店行业作为一个具有代表性的服务性行业,极为注重客户的入住体验。由于客户的主要使用区域集中于室内、使用时间集中于晚上,因此,该行业对于高效、实用、个性化的智能照明设备有着更为浓厚的兴趣。As LED smart lighting technology matures, the popularity of LED smart lighting is getting higher and higher. Its advantages are that it is efficient, energy-saving and has more diverse lighting methods. It can switch lighting effects in real time according to the needs of different scenes, making it more humane. As a representative service industry, the hotel industry attaches great importance to the customer's stay experience. Since the main usage areas of customers are concentrated indoors and the usage time is concentrated at night, the industry has a stronger interest in efficient, practical, and personalized smart lighting equipment.
同时,随着互联网行业的不断发展,及大数据时代的到来,个性化推荐功能,作为一种能根据用户特性自主排除冗余信息、寻找最优结果的产品及服务推荐功能,其应用范围日趋广泛。At the same time, with the continuous development of the Internet industry and the advent of the big data era, the personalized recommendation function, as a product and service recommendation function that can independently eliminate redundant information and find optimal results based on user characteristics, has an increasingly wide range of applications. widely.
然而,对于酒店行业而言,该行业内当前所使用的智能照明设备往往局限于简单的红外、声控开关设备,或者无线遥控设备等,针对性不高,且无法依据入住用户的个性化照明,为入住用户提供更具适用性的照明体验。However, for the hotel industry, the smart lighting equipment currently used in the industry is often limited to simple infrared, voice-activated switch equipment, or wireless remote control equipment, etc., which are not highly targeted and cannot be based on the personalized lighting of the staying users. Provide a more applicable lighting experience for the residents.
发明专利内容Invention patent content
本发明专利的目的在于,提供一种基于手机APP的酒店个性化智能照明装置、系统及方法,融合智能照明设备与个性化推荐功能的自身优点,为酒店入住用户提供更具个性化的照明体验。The purpose of the patent of this invention is to provide a hotel personalized intelligent lighting device, system and method based on a mobile phone APP, integrating the advantages of intelligent lighting equipment and personalized recommendation functions to provide hotel users with a more personalized lighting experience .
本发明的技术解决方案之一是,提供一种以下结构的基于手机APP的酒店个性化智能照明装置,其包括主机单元和用户接口单元,所述主机单元包括输入模块、用户特性分析模块、用户调制分析模块、照明推荐模块、输出模块和存储模块,所述用户接口单元中设有操作面板;One of the technical solutions of the present invention is to provide a hotel personalized intelligent lighting device based on a mobile phone APP with the following structure, which includes a host unit and a user interface unit. The host unit includes an input module, a user characteristic analysis module, and a user interface unit. Modulation analysis module, lighting recommendation module, output module and storage module, the user interface unit is provided with an operation panel;
所述主机单元被配置为:The host unit is configured as:
用户从手机APP终端输入用户个人特性参数等注册信息,同时还通过手机APP终端输入对酒店客房内可调光灯组的色温、亮度进行调制的调光指令,所述信息和指令均通过输入模块传送到主机单元并由主机单元转存到外部服务器的数据库中,The user inputs registration information such as user personal characteristic parameters from the mobile APP terminal, and also inputs dimming instructions to modulate the color temperature and brightness of the dimmable lamp group in the hotel room through the mobile APP terminal. The information and instructions are all passed through the input module transmitted to the host unit and transferred by the host unit to the database of the external server,
所述用户个人特性参数包括年龄、性别、区域、职业、喜欢的色温、喜欢的亮度、入住人数和出行目的等类别,The user's personal characteristic parameters include age, gender, region, occupation, preferred color temperature, preferred brightness, number of guests and travel purpose, etc.
用户特性分析模块对用户个人特性数据进行按类别的处理与分析,首先,为每个类别在其论域范围建立模糊变量集并为集合中的每个模糊变量建立隶属度函数;然后,根据所述隶属度函数,计算用户个人特性数据中每个数据对应其类别中各模糊变量的隶属度值,并将所有隶属度值按顺序排列为一个特性隶属度值向量;接着,将特性隶属度值向量分别保存到存储模块及外部数据库中,The user characteristic analysis module processes and analyzes the user's personal characteristic data by category. First, it establishes a fuzzy variable set for each category in its domain of discussion and establishes a membership function for each fuzzy variable in the set; then, based on the required Describe the membership function, calculate the membership value of each fuzzy variable in the category corresponding to each data in the user's personal characteristic data, and arrange all the membership values in order into a characteristic membership value vector; then, the characteristic membership value The vectors are saved to the storage module and external database respectively.
用户调制分析模块对用户通过APP终端输入的调光指令中的、对应可调光灯组中各灯的调光信号,进行处理获得对应的调制值,并将所述调制值按顺序排列为一个灯调制向量后分别保存到存储模块及外部数据库中,The user modulation analysis module processes the dimming signals corresponding to each lamp in the dimmable lamp group in the dimming instructions input by the user through the APP terminal to obtain the corresponding modulation values, and arranges the modulation values in order into a The lamp modulation vector is then saved to the storage module and external database respectively.
照明推荐模块将用户的所述特性隶属度值向量、灯调制向量与外部数据库中其他历史入住用户数据进行对比,根据所述向量间的相似度,对用户的最终灯调制向量进行推测,并通过手机APP终端推荐给用户,The lighting recommendation module compares the user's characteristic membership value vector and light modulation vector with other historical occupancy user data in the external database, and infers the user's final light modulation vector based on the similarity between the vectors. Mobile APP terminal is recommended to users,
在用户确认所述推荐后,通过输出模块向可调光灯组发送调光指令。After the user confirms the recommendation, a dimming instruction is sent to the dimmable lamp group through the output module.
作为优选,入住用户前台登记入住时,其登记的必要身份信息,包括身份证号、客房号等,被存入数据库中,并由数据库传送给所入住客房内的主机单元,As a preferred option, when a user checks in at the front desk, the necessary identity information for the registration, including ID number, room number, etc., is stored in the database and transmitted from the database to the host unit in the guest room.
所述手机APP终端设置有三个界面——登录界面、注册界面和灯具调制界面,入住用户通过手机APP终端的登录界面登录时,主机单元通过对比入住用户输入的身份信息与前台登记信息是否符合,来判定是否允许所述入住用户登录并进入后续界面,The mobile APP terminal is equipped with three interfaces - login interface, registration interface and lamp modulation interface. When a check-in user logs in through the login interface of the mobile APP terminal, the host unit compares the identity information input by the check-in user with the front desk registration information to see whether it matches. To determine whether the check-in user is allowed to log in and enter the subsequent interface,
当入住用户登录成功后,可通过注册界面和灯具调制界面,向主机单元发送信息,完善用户个人特性参数以及对客房内灯具做开关和亮度、色温的调制操作。When the user logs in successfully, he or she can send information to the host unit through the registration interface and lamp modulation interface, improve the user's personal characteristics parameters, and perform switching and brightness and color temperature modulation operations on the lamps in the guest room.
作为优选,所述主机单元还被配置为:Preferably, the host unit is further configured to:
当新的入住用户u首次入住酒店并打开手机APP终端注册后,照明推荐模块依据用户注册信息,将该用户的所述特性隶属度值向量与数据库中其他历史入住用户v的特性隶属度值向量进行对比,计算两个向量间的相似度,When a new check-in user u checks into the hotel for the first time and opens the mobile APP terminal to register, the lighting recommendation module combines the user's characteristic membership value vector with the characteristic membership value vector of other historical check-in users v in the database based on the user registration information. Compare and calculate the similarity between the two vectors,
其中,simi(u,v)为在第i个参数类别维度上,用户u、v的特性相似度,I为所述年龄等类别集合,j为第i个参数类别的模糊变量集内模糊量的个数,μik(ui)、μik(vi)分别为用户u、v在第i个类别上的参数值对应于该类别中第k个模糊变量的隶属度值,k=1,2,...,j。Among them, sim i (u, v) is the characteristic similarity of users u and v in the i-th parameter category dimension, I is the set of categories such as age, and j is the fuzzy in-set fuzzy variable of the i-th parameter category. The number of quantities, μ ik (u i ) and μ ik (v i ) are respectively the parameter values of users u and v on the i-th category corresponding to the membership value of the k-th fuzzy variable in the category, k= 1,2,...,j.
例如,对于年龄参数类别,可以设置少年、青年、中年、老年等4个模糊变量;对于色温参数类别,可以设置低色温、中色温和高色温等3个模糊变量。For example, for the age parameter category, you can set four fuzzy variables such as juvenile, young, middle-aged, and old; for the color temperature parameter category, you can set three fuzzy variables such as low color temperature, medium color temperature, and high color temperature.
作为优选,所述喜欢的色温可以是一个根据时间段的色温列表,时间段为上午、下午和夜晚;出行目的可以是旅游、工作、会友等,工作又可细分为商务、工程、技术服务等活动。Preferably, the preferred color temperature can be a list of color temperatures based on time periods, with the time periods being morning, afternoon and night; the purpose of travel can be travel, work, meeting friends, etc., and work can be subdivided into business, engineering, and technical services. and other activities.
作为优选,所述主机单元还被配置为:Preferably, the host unit is further configured to:
对于非首次入住用户,当该入住用户u通过手机APP终端对灯具色温、亮度进行调制时对其调制信息进行记录,同时照明推荐模块根据其调制数值建立灯调制向量[Xu,Yu]:For non-first-time users, when the user u modulates the color temperature and brightness of the lamp through the mobile APP terminal, its modulation information is recorded. At the same time, the lighting recommendation module establishes the lamp modulation vector [X u , Y u ] based on its modulation value:
其中,Xu表示用户u对客房内可调光灯组中部分灯如m盏灯具的亮度调制值,其相应数值分别为x1至xm,Yu表示用户u对客房内m盏灯具的色温调制值,其相应数值分别为y1至ym, Among them , _ Color temperature modulation value, the corresponding values are y 1 to y m respectively,
然后,基于所述灯调制向量,将其与数据库内储存的历史入住用户的灯调制向量进行对比,逐一计算向量相似度:Then, based on the light modulation vector, compare it with the light modulation vectors of historical occupancy users stored in the database, and calculate the vector similarity one by one:
sim(u,v)=α·simx+(1-α)·simy sim(u,v)=α·sim x +(1-α)·sim y
其中,m表示入住用户共同调制过的灯具个数,xi,u、yi,u、xi,v、yi,v分别表示入住用户u和v对该灯具的亮度和色温调制值,分别表示相应调制值的平均值,/>为用户u对m个已调制灯的亮度调制值的算术平均值,Among them, m represents the number of lamps modulated by the occupancy users, xi , u , y i, u , xi , v , y i, v respectively represent the brightness and color temperature modulation values of the lamps by occupancy users u and v. Represents the average value of the corresponding modulation values,/> is the arithmetic mean of the brightness modulation values of m modulated lights by user u,
simx(u,v)、simy(u,v)、sim(u,v)分别表示u和v的亮度相似度、色温相似度和整体向量相似度,整体相似度为亮度相似度和色温相似度加权和,α为亮度相似度的权值。simx (u, v), sim y (u, v), sim (u, v) respectively represent the brightness similarity, color temperature similarity and overall vector similarity of u and v. The overall similarity is the brightness similarity and color temperature similarity. Degree weighted sum, α is the weight of brightness similarity.
作为优选,所述主机单元还被配置为:Preferably, the host unit is further configured to:
在向量相似度计算完成后,取相似度最高的K个历史入住用户作为u的邻居并组成u的邻居集合,然后,根据邻居集合内入住用户的历史调制信息推测入住用户u的客房内灯具i的推荐亮度调制值x′u,i和色温调制值y’u,i:After the vector similarity calculation is completed, the K historical occupancy users with the highest similarity are taken as neighbors of u and form u's neighbor set. Then, based on the historical modulation information of the occupancy users in the neighbor set, the lamp i in the guest room of user u is inferred. Recommended brightness modulation value x′ u,i and color temperature modulation value y' u,i :
其中,i=1,2,...,n,n为入住客房内用户u还没确定调制值的灯的个数;Among them, i=1, 2, ..., n, n is the number of lamps in the guest room for which user u has not yet determined the modulation value;
输出模块将所述亮度调制值x′u,i和色温调制值y′u,i发送给手机APP终端,并将手机APP终端返回的确认后的调制数据存入数据库同时通过输出模块发送给灯组的驱动器。The output module sends the brightness modulation value x′ u, i and the color temperature modulation value y′ u, i to the mobile phone APP terminal, and stores the confirmed modulation data returned by the mobile phone APP terminal into the database and sends it to the lamp through the output module. Group of drives.
作为优选,其中灯具i均是客房内未经用户u调制并确认操作过的灯。Preferably, the lamps i are all lamps in the guest room that have not been modulated and confirmed to be operated by the user u.
在本发明的另一个实施例中,所述主机单元还可以被配置为:In another embodiment of the present invention, the host unit may also be configured as:
当新的入住用户u首次入住并打开手机APP终端注册后,首先依据用户注册信息,采用模糊分类放法对其进行分类,计算其类别:When a new check-in user u checks in for the first time and opens the mobile APP terminal to register, first use the fuzzy classification method to classify the user based on the user registration information and calculate its category:
F=S+N+Y+DF=S+N+Y+D
其中S为入住用户性别如男用0表示女用1表示;N为入住人数,一般取值为1、2、3等;Y为入住用户年龄,取其实际年龄值减去20后的十位数且截止为0至4;D为出行目的,其数值由0至6,分别对应商务、旅游、会客、休闲、会议、办公和长租。F为入住用户的分类值,获得同样得分的用户被分入同一类别中,其数值可能取1到14,即将全部历史入住用户分为14类。Among them, S is the gender of the checking-in user. For example, male is represented by 0 and female is represented by 1; N is the number of guests, usually with values 1, 2, 3, etc.; The number and cut-off range is 0 to 4; D is the purpose of travel, and its value ranges from 0 to 6, corresponding to business, tourism, reception, leisure, conference, office and long-term rental respectively. F is the classification value of check-in users. Users with the same score are classified into the same category, and their values may range from 1 to 14, that is, all historical check-in users are divided into 14 categories.
在该用户进入客房后,照明推荐模块将其F值与外部数据库中其他历史入住用户F值进行对比,将同一取值的用户组合为该用户的邻居集合,对该用户的最终灯调制向量按邻居集合中各用户对各灯调制值计算平均数后作为推测值并组合为调制向量,再通过手机APP终端将该调制向量推荐给用户。After the user enters the guest room, the lighting recommendation module compares its F value with the F value of other historical check-in users in the external database, combines users with the same value into the user's neighbor set, and determines the user's final light modulation vector according to Each user in the neighbor set calculates the average of the modulation values of each lamp as a guess value and combines it into a modulation vector, and then recommends the modulation vector to the user through the mobile APP terminal.
在本发明的再一个实施例中,还提供一种基于手机APP的酒店个性化智能照明系统,其包括具有亮度和色温均可调的光性质的可调光色灯组、用来进行参数输入和调光操作的用户接口单元、手机APP终端、服务器,以及与所述灯组、用户接口单元、手机APP终端和服务器均分别相连的主机单元,In another embodiment of the present invention, a hotel personalized intelligent lighting system based on a mobile phone APP is also provided, which includes an adjustable light color lamp group with adjustable brightness and color temperature, and is used for parameter input. and the user interface unit, mobile phone APP terminal and server for dimming operation, as well as the host unit respectively connected to the lamp group, user interface unit, mobile phone APP terminal and server,
所述主机单元包括输入模块、用户特性分析模块、用户调制分析模块、照明推荐模块、输出模块和存储模块,并且其被配置为:The host unit includes an input module, a user characteristic analysis module, a user modulation analysis module, a lighting recommendation module, an output module and a storage module, and is configured as:
用户从手机APP终端输入用户个人特性参数等注册信息,同时还通过手机APP终端输入对酒店客房内所述灯组色温、亮度进行调制的调光指令,所述信息和指令均通过控制单元中的输入模块传送到主机单元并由主机单元转存到所述服务器的数据库中,The user inputs registration information such as user personal characteristic parameters from the mobile APP terminal, and also inputs dimming instructions to modulate the color temperature and brightness of the lamp group in the hotel room through the mobile APP terminal. The information and instructions are all passed through the control unit. The input module is transmitted to the host unit and dumped by the host unit into the database of the server,
所述用户个人特性参数包括年龄、性别、区域、职业、喜欢的色温、喜欢的亮度、入住人数和出行目的等类别,The user's personal characteristic parameters include age, gender, region, occupation, preferred color temperature, preferred brightness, number of guests and travel purpose, etc.
当新的入住用户u首次入住酒店,用户特性分析模块对用户个人特性数据进行按类别的处理与分析,首先,为每个类别在其论域范围建立模糊变量集并为集合中的每个模糊变量建立隶属度函数;然后,根据所述隶属度函数,计算用户个人特性数据中每个数据对应其类别中各模糊变量的隶属度值,并将所有隶属度值按顺序排列为一个特性隶属度值向量;接着,将特性隶属度值向量分别保存到存储模块及服务器数据库中,When a new user u checks into the hotel for the first time, the user characteristic analysis module processes and analyzes the user's personal characteristic data by category. First, a fuzzy variable set is established for each category in its domain of discussion and each fuzzy variable set in the set is Variables establish a membership function; then, according to the membership function, calculate the membership value of each data in the user's personal characteristic data corresponding to each fuzzy variable in its category, and arrange all the membership values in order into a characteristic membership degree value vector; then, save the characteristic membership value vector to the storage module and server database respectively.
用户调制分析模块对用户通过APP终端输入的调光指令中的、对应可调光灯组中各灯的调光信号,进行处理获得对应的调制值,并将所述调制值按顺序排列为一个灯调制向量后分别保存到存储模块及服务器数据库中,The user modulation analysis module processes the dimming signals corresponding to each lamp in the dimmable lamp group in the dimming instructions input by the user through the APP terminal to obtain the corresponding modulation values, and arranges the modulation values in order into a The lamp modulation vector is then saved to the storage module and server database respectively.
照明推荐模块将用户的所述特性隶属度值向量、灯调制向量与服务器数据库中其他历史入住用户数据进行对比,根据所述向量间的相似度,对用户的最终灯调制向量进行推测,并通过手机APP终端推荐给用户,The lighting recommendation module compares the user's characteristic membership value vector and light modulation vector with other historical occupancy user data in the server database, and infers the user's final light modulation vector based on the similarity between the vectors. Mobile APP terminal is recommended to users,
在用户确认所述推荐后,通过输出模块向可调光灯组发送调光指令,After the user confirms the recommendation, a dimming instruction is sent to the dimmable lamp group through the output module.
其中,特性隶属度值向量的相似度按下式进行计算:Among them, the similarity of the feature membership value vector is calculated as follows:
其中, in,
simi(u,v)为在第i个参数类别维度上,新的入住用户u与数据库中历史入住用户v的特性相似度,I为所述年龄等类别集合,j为第i个参数类别的模糊变量集内模糊量的个数,μik(ui)、μik(vi)分别为用户u、v在第i个类别上的参数值对应于该类别中第k个模糊变量的隶属度值,k=1,2,...,j。sim i (u, v) is the characteristic similarity between the new check-in user u and the historical check-in user v in the database in the i-th parameter category dimension, I is the set of categories such as age, and j is the i-th parameter category The number of fuzzy quantities in the fuzzy variable set, μ ik (u i ), μ ik (vi) are the parameter values of users u and v on the i-th category corresponding to the membership of the k-th fuzzy variable in the category. Degree value, k=1, 2,...,j.
作为优选,所述灯组由多个可调光LED灯构成,并布局于酒店天花板上,LED灯的驱动器通过通信接口与主机单元相连,主机单元依据手机APP终端发送的指令,通过驱动器来改变LED灯内各驱动通道的驱动电流,实现对其亮度、色温的调制,Preferably, the lamp group is composed of multiple dimmable LED lamps and is arranged on the ceiling of the hotel. The driver of the LED lamp is connected to the host unit through the communication interface. The host unit changes through the driver according to the instructions sent by the mobile phone APP terminal. The driving current of each driving channel in the LED lamp realizes the modulation of its brightness and color temperature.
所述调制值为各驱动通道的驱动电流的PWM波占空比数值,The modulation value is the PWM wave duty cycle value of the drive current of each drive channel,
手机APP终端可以通过客房内的无线路由与主机单元连接,同时主机单元还通过有线连接的方式与可调光色LED灯组及服务器相连。The mobile APP terminal can be connected to the host unit through the wireless router in the guest room. At the same time, the host unit is also connected to the dimmable color LED light group and the server through wired connections.
在本发明的再另一个实施例中,还提供一种基于手机APP的酒店个性化智能照明方法,包括以下步骤:In yet another embodiment of the present invention, a hotel personalized intelligent lighting method based on a mobile phone APP is also provided, including the following steps:
S1、初始化,用户入住登记与信息采集,S1. Initialization, user check-in registration and information collection,
系统通过手机APP终端接受用户个人特性参数等注册信息,由主机单元转存到服务器的数据库中,所述用户个人特性参数包括年龄、性别、区域、职业、喜欢的色温、喜欢的亮度、入住人数和出行目的等类别,The system accepts registration information such as user personal characteristics parameters through the mobile APP terminal, and transfers them to the database of the server by the host unit. The user personal characteristics parameters include age, gender, region, occupation, favorite color temperature, favorite brightness, and number of guests. and travel purpose and other categories,
为每个用户个人特性参数类别,在其论域范围内建立模糊变量集,并为集合中的每个模糊变量建立隶属度函数,For each user's personal characteristic parameter category, a fuzzy variable set is established within its domain of discussion, and a membership function is established for each fuzzy variable in the set.
S2、酒店客房内的主机单元判断用户是否初次入住并构建用户个性向量,如果是初次入住则转S3,否则,通过手机APP终端接受用户对酒店客房内可调光灯组的色温、亮度进行调制的调光指令,将所述调光指令中的、对应可调光灯组中各灯的调光信号,进行处理获得对应的调制值,并将所述调制值按顺序排列为一个灯调制向量作为用户个性向量,然后,转S4,S2. The host unit in the hotel room determines whether the user is checking in for the first time and builds a user personality vector. If it is the first time, it goes to S3. Otherwise, the user modulates the color temperature and brightness of the dimmable light group in the hotel room through the mobile APP terminal. A dimming instruction, process the dimming signal corresponding to each lamp in the dimmable lamp group in the dimming instruction to obtain the corresponding modulation value, and arrange the modulation values in sequence into a lamp modulation vector As the user personality vector, then, go to S4,
S3、对于初次入住用户,首先,对其每一个个人特性参数,基于所述参数所在类别的每个模糊变量的隶属度函数,计算用户个人特性参数值对应的隶属度值,并将所有所述隶属度值按顺序排列为一个特性隶属度值向量作为用户个性向量,S3. For first-time check-in users, first, for each personal characteristic parameter, based on the membership function of each fuzzy variable in the category of the parameter, calculate the membership value corresponding to the user's personal characteristic parameter value, and combine all the The membership values are arranged in order into a characteristic membership value vector as the user personality vector,
S4、将用户个性向量分别保存到主机单元的存储模块及服务器数据库中,S4. Save the user personality vector to the storage module of the host unit and the server database respectively.
S5、将用户的所述用户个性向量与服务器数据库中其他历史入住用户数据进行对比,根据所述向量间的相似度,对用户偏好的灯调制向量进行推测,S5. Compare the user's user personality vector with other historical occupancy user data in the server database, and infer the user's preferred light modulation vector based on the similarity between the vectors.
S6、将推测结果通过手机APP终端推荐给用户,待用户确认或调整所述推荐后,将确认后的灯调制向量通过主机单元的输出模块传送给可调光灯组进行调光,同时,将灯调制向量存入服务器数据库。S6. Recommend the prediction results to the user through the mobile APP terminal. After the user confirms or adjusts the recommendation, the confirmed lamp modulation vector is transmitted to the dimmable lamp group through the output module of the host unit for dimming. At the same time, The lamp modulation vector is stored in the server database.
作为优选,所述步骤S1还包括:Preferably, step S1 also includes:
入住用户前台登记入住时,将所登记的必要身份信息包括身份证号、客房号等存入服务器数据库中,并由数据库传送给所入住客房内的主机单元,When a user checks in at the front desk, the registered necessary identity information, including ID number, room number, etc., is stored in the server database and transmitted from the database to the host unit in the guest room.
在所述手机APP终端上设置三个界面——登录界面、注册界面和灯具调制界面,入住用户通过手机APP终端的登录界面登录时,主机单元通过对比入住用户输入的身份信息与前台登记信息是否符合,来判定是否允许所述入住用户登录并进入后续界面,Three interfaces are set up on the mobile APP terminal - login interface, registration interface and lamp modulation interface. When a check-in user logs in through the login interface of the mobile APP terminal, the host unit compares the identity information input by the check-in user with the front desk registration information. Comply, to determine whether the check-in user is allowed to log in and enter the subsequent interface.
当入住用户登录成功后,可通过注册界面和灯具调制界面,向主机单元发送信息,完善用户个人特性参数以及对客房内灯具作亮度、色温的调制操作。When the user logs in successfully, he or she can send information to the host unit through the registration interface and lamp modulation interface to improve the user's personal characteristics and adjust the brightness and color temperature of the lamps in the guest room.
作为优选,所述步骤S1中,所述服务器采用云服务器,系统通过手机APP终端接受用户个人特性参数等注册信息后,由手机APP终端直接将所述信息保存到到云服务器的数据库中。Preferably, in step S1, the server adopts a cloud server. After the system receives the user's personal characteristic parameters and other registration information through the mobile APP terminal, the mobile APP terminal directly saves the information to the database of the cloud server.
作为优选,所述步骤S2还包括:Preferably, step S2 also includes:
对于非首次入住用户,当该入住用户u通过手机APP终端对灯具色温、亮度进行调制时对其调制信息进行记录,同时根据其调制数值建立灯调制向量[Xu,Yu]:For non-first-time users, when the user u modulates the color temperature and brightness of the lamp through the mobile APP terminal, the modulation information is recorded, and the lamp modulation vector [X u , Y u ] is established based on the modulation value:
其中,Xu表示用户u对酒店客房内可调光灯组中部分m盏灯具的亮度调制值,其相应数值分别为x1至xm,Yu表示用户u对所述m盏灯具的色温调制值,其相应数值分别为y1至ym; Among them , _ Modulation value, its corresponding values are y 1 to y m respectively;
所述步骤S5还包括:The step S5 also includes:
基于所述m盏灯具的灯调制向量,将其与数据库内储存的历史入住用户的灯调制向量进行对比,逐一计算向量相似度:Based on the lamp modulation vectors of the m lamps, compare them with the lamp modulation vectors of historical occupancy users stored in the database, and calculate the vector similarity one by one:
sim(u,v)=α·simx+(1-α)·simy sim(u,v)=α·sim x +(1-α)·sim y
其中,m表示入住用户共同调制过的灯具个数,xi,u、yi,u、xi,v、yi,v分别表示入住用户u和v对该灯具的亮度和色温调制值,分别表示相应调制值的平均值,/>为用户u对m个已调制灯的亮度调制值的算术平均值,Among them, m represents the number of lamps modulated by the occupancy users, xi , u , y i, u , xi , v , y i, v respectively represent the brightness and color temperature modulation values of the lamps by occupancy users u and v. Represents the average value of the corresponding modulation values,/> is the arithmetic mean of the brightness modulation values of m modulated lights by user u,
simx(u,v)、simy(u,v)、sim(u,v)分别表示u和v的亮度相似度、色温相似度和整体向量相似度,整体相似度为亮度相似度和色温相似度加权和,α为亮度相似度的权值。sim x (u, v), sim y (u, v), sim (u, v) respectively represent the brightness similarity, color temperature similarity and overall vector similarity of u and v. The overall similarity is the brightness similarity and color temperature. The weighted sum of similarities, α is the weight of brightness similarity.
作为优选,所述步骤S5还包括:Preferably, step S5 also includes:
对于首次入住用户u,将该用户的所述特性隶属度值向量与数据库中其他历史入住用户v的特性隶属度值向量进行对比,计算两个向量间的相似度,For the first-time check-in user u, compare the characteristic membership value vector of the user with the characteristic membership value vector of other historical check-in users v in the database, and calculate the similarity between the two vectors,
其中,simi(u,v)为在第i个参数类别维度上,用户u、v的特性相似度,I为所述年龄等类别集合,j为第i个参数类别的模糊变量集内模糊量的个数,μik(ui)、μik(vi)分别为用户u、v在第i个类别上的参数值对应于该类别中第k个模糊变量的隶属度值,k=1,2,...,j。Among them, sim i (u, v) is the characteristic similarity of users u and v in the i-th parameter category dimension, I is the set of categories such as age, and j is the fuzzy in-set fuzzy variable of the i-th parameter category. The number of quantities, μ ik (u i ) and μ ik (vi) are the parameter values of users u and v on the i-th category corresponding to the membership value of the k-th fuzzy variable in the category, k=1 ,2,...,j.
作为优选,所述步骤S5还包括:Preferably, step S5 also includes:
在向量相似度计算完成后,取相似度最高的K个历史入住用户作为u的邻居并组成u的邻居集合,然后,根据邻居集合内入住用户的历史调制信息推测入住用户u的客房内灯具i的推荐亮度调制值x′u,i和色温调制值y′u,i:After the vector similarity calculation is completed, the K historical occupancy users with the highest similarity are taken as neighbors of u and form u's neighbor set. Then, based on the historical modulation information of the occupancy users in the neighbor set, the lamp i in the guest room of user u is inferred. Recommended brightness modulation value x′ u,i and color temperature modulation value y′ u,i :
其中,i=1,2,...,n;Among them, i=1, 2,..., n;
所述步骤S6包括:The step S6 includes:
主机单元将所述亮度调制值x′u,i和色温调制值y′u,i发送给手机APP终端,并将手机APP终端返回的确认后的调制数据存入数据库同时通过输出模块发送给可调光灯组的驱动器。The host unit sends the brightness modulation value x′ u,i and the color temperature modulation value y′ u,i to the mobile phone APP terminal, stores the confirmed modulation data returned by the mobile phone APP terminal into the database and sends it to the user through the output module. Driver for dimming light sets.
作为优选,其中灯具i均是客房内未经用户u调制并确认操作过的灯。Preferably, the lamps i are all lamps in the guest room that have not been modulated and confirmed to be operated by the user u.
作为优选,还包括以下步骤:Preferably, the following steps are also included:
以可调光灯组内各驱动通道驱动电流的PWM波占空比数值作为调制值,并在调光指令中传送所述调制值,Use the PWM wave duty cycle value of the drive current of each drive channel in the dimmable lamp group as the modulation value, and transmit the modulation value in the dimming command,
在酒店客房内设置一个操作面板来来进行参数输入,同时通过显示屏来辅助显示,并在用户确认灯调制向量后将所述向量以列表的形式显示在显示屏上。An operation panel is set up in the hotel room for parameter input, and the display screen is used for auxiliary display. After the user confirms the light modulation vector, the vector is displayed on the display screen in the form of a list.
在本发明的又一个实施例中,所述步骤S3采用如下处理:In another embodiment of the present invention, step S3 adopts the following processing:
当新的入住用户u首次入住并打开手机APP终端注册后,首先依据用户注册信息,采用模糊分类方法对其进行分类,计算其类别:When a new check-in user u checks in for the first time and opens the mobile APP terminal to register, first use the fuzzy classification method to classify the user based on the user registration information and calculate its category:
F=S+N+Y+DF=S+N+Y+D
其中S为入住用户性别如男用0表示女用1表示;N为入住人数,一般取值为1、2、3等;Y为入住用户年龄,取其实际年龄值减去20后的十位数且截止为0至4;D为出行目的,其数值由0至6,分别对应商务、旅游、会客、休闲、会议、办公和长租。F为入住用户的分类值,获得同样得分的用户被分入同一类别中,其数值可能取1到14,即将全部历史入住用户分为14类;Among them, S is the gender of the checking-in user. For example, male is represented by 0 and female is represented by 1; N is the number of guests, usually with values 1, 2, 3, etc.; The number and cut-off range is 0 to 4; D is the purpose of travel, and its value ranges from 0 to 6, corresponding to business, tourism, reception, leisure, conference, office and long-term rental respectively. F is the classification value of check-in users. Users with the same score are classified into the same category, and their values may range from 1 to 14, that is, all historical check-in users are divided into 14 categories;
步骤S5采用如下处理:Step S5 adopts the following processing:
在首次入住用户进入客房后,将其F值与服务器数据库中其他历史入住用户F值进行对比,将同一取值的用户组合为该用户的邻居集合,对该用户偏好的灯调制向量按邻居集合中各用户对各灯调制值计算平均数后作为推测值并组合为调制向量,再通过手机APP终端将该调制向量推荐给用户。After the first-time check-in user enters the room, compare its F value with the F value of other historical check-in users in the server database, combine users with the same value into the user's neighbor set, and use the user's preferred light modulation vector according to the neighbor set. Each user calculates the average of the modulation values of each lamp as the estimated value and combines it into a modulation vector, and then recommends the modulation vector to the user through the mobile APP terminal.
采用本发明的照明系统中,手机APP终端与主机单元通过无线通信如WIFI接口相连,手机APP终端可通过酒店客房的WIFI网络向主机单元发送用户注册信息和调控指令。主机单元通过驱动器与可调光色LED灯的LED串相连,依据手机APP终端的调控指令,对可调光色LED灯组进行亮度、色温调制,同时将用户键入信息和调控指令录入数据库,与其他历史入住用户进行对比,依据用户特性以及调控指令中各灯调制值的相似度,对用户调控参数进行推测,并通过手机APP终端推荐给用户,以满足用户的个性化照明需求。In the lighting system adopting the present invention, the mobile phone APP terminal is connected to the host unit through wireless communication such as a WIFI interface. The mobile phone APP terminal can send user registration information and control instructions to the host unit through the WIFI network of the hotel room. The host unit is connected to the LED string of the dimmable color LED lamp through the driver. According to the control instructions of the mobile APP terminal, the brightness and color temperature of the dimmable color LED lamp group are modulated. At the same time, the user input information and control instructions are entered into the database, and the Comparison with other historical occupancy users, based on the user characteristics and the similarity of each lamp modulation value in the control instructions, the user control parameters are inferred and recommended to the user through the mobile APP terminal to meet the user's personalized lighting needs.
可调光色LED灯组,由多个亮度、色温可调的LED灯构成,对于改造的酒店可依据酒店原有灯具布局安置于酒店天花板上,并与主机单元相连,主机单元包含WIFI通信模块,可通过该模块连入客房环境中的无线路由器与手机APP终端实现通信,同时通过有线连接的方式,与可调光色LED灯及服务器相连。主机单元向用户推荐推测的灯调制向量后,根据手机APP终端发送的确认指令,通过改变PWM波占空比,控制驱动器相应改变可调光色LED灯各驱动通道的驱动电流,实现对客房内各LED灯的亮度、色温调制。The dimmable color LED lamp set is composed of multiple LED lamps with adjustable brightness and color temperature. For renovated hotels, it can be placed on the ceiling of the hotel according to the original lighting layout of the hotel and connected to the host unit. The host unit contains a WIFI communication module , the module can be connected to the wireless router in the guest room environment to communicate with the mobile APP terminal, and at the same time, it can be connected to the dimmable color LED lights and the server through wired connections. After the host unit recommends the guessed lamp modulation vector to the user, it controls the driver to correspondingly change the drive current of each drive channel of the dimmable color LED lamp by changing the PWM wave duty cycle according to the confirmation command sent by the mobile APP terminal to realize the control of the interior of the guest room. The brightness and color temperature of each LED light can be modulated.
推荐亮度调制值x′u,i和色温调制值y′u,i计算完成后,组合为灯调制向量发送至手机APP终端,并显示在其界面上。用户可以直接确认该向量对应的调制参数列表,也可以对部分LED灯的调制参数进行修改。用户在APP界面上点击确认后,手机APP终端按照界面上的各项调制参数向主机单元发送灯具调制指令;进而,主机单元将灯调制向量存入服务器的数据库中,同时通过输出模块向LED灯的各驱动器发送相应的PWM占空比调制值,实现客房内的场景照明。After the recommended brightness modulation values x′ u, i and color temperature modulation values y′ u, i are calculated, the combination is a lamp modulation vector and sent to the mobile APP terminal and displayed on its interface. Users can directly confirm the modulation parameter list corresponding to this vector, or modify the modulation parameters of some LED lights. After the user clicks to confirm on the APP interface, the mobile APP terminal sends lamp modulation instructions to the host unit according to various modulation parameters on the interface; then, the host unit stores the lamp modulation vector in the database of the server, and at the same time sends it to the LED lamp through the output module Each driver sends the corresponding PWM duty cycle modulation value to realize the scene lighting in the guest room.
本发明专利优点:Advantages of the patent of this invention:
1、通过对用户特性的按类别分析来进行相似度计算,推测首次入住用户照明需求,解决了推荐应用的冷启动问题;1. Perform similarity calculations by analyzing user characteristics by category, infer the lighting needs of first-time users, and solve the cold start problem of recommended applications;
2、用户对部分灯光进行调制后,系统能利用历史入住用户的相似调制,推测其对其他灯光的调制需求,照明效果更具针对性;2. After the user modulates some lights, the system can use the similar modulations of historical occupancy users to infer their modulation needs for other lights, so that the lighting effect is more targeted;
3、本发明用手机APP控制,可实现远程控制、单灯调光及推荐场景的一键开关,简单便捷。3. The present invention is controlled by mobile phone APP, which can realize remote control, single lamp dimming and one-key switch of recommended scenes, which is simple and convenient.
附图说明Description of the drawings
图1为基于手机APP的酒店个性化智能照明方法工作流程图;Figure 1 is a work flow chart of the personalized smart lighting method for hotels based on mobile APP;
图2为采用本发明中照明方法的基于手机APP的酒店个性化智能照明系统的组成结构图;Figure 2 is a structural diagram of a hotel personalized intelligent lighting system based on a mobile phone APP using the lighting method of the present invention;
图3为酒店个性化智能照明系统应用环境示意图;Figure 3 is a schematic diagram of the application environment of the hotel's personalized intelligent lighting system;
图4为属性隶属度函数示意图;Figure 4 is a schematic diagram of the attribute membership function;
图5为灯调制参数个性化推荐信号流图。Figure 5 is a signal flow diagram for personalized recommendation of lamp modulation parameters.
其中:in:
1000基于手机APP的酒店个性化智能照明系统,100主机单元,200可调光灯组,300用户接口单元,400手机APP终端,500服务器,800基于手机APP的酒店个性化智能照明装置,1000 hotel personalized smart lighting systems based on mobile APP, 100 host units, 200 dimmable light groups, 300 user interface units, 400 mobile APP terminals, 500 servers, 800 hotel personalized smart lighting devices based on mobile APP,
110输入模块,120用户特性分析模块,130照明推荐模块,140输出模块,150存储模块,160用户调制分析模块,110 input module, 120 user characteristic analysis module, 130 lighting recommendation module, 140 output module, 150 storage module, 160 user modulation analysis module,
210驱动器,220LED灯,210 drivers, 220LED lights,
310显示屏,320操作面板。310 display screen, 320 operation panel.
具体实施方式Detailed ways
以下结合附图对本发明的优选实施例进行详细描述,但本发明并不仅仅限于这些实施例。本发明涵盖任何在本发明的精神和范围上做的替代、修改、等效方法以及方案。Preferred embodiments of the present invention will be described in detail below with reference to the accompanying drawings, but the present invention is not limited only to these embodiments. The present invention covers any alternatives, modifications, equivalent methods and solutions within the spirit and scope of the invention.
为了使公众对本发明有彻底的了解,在以下本发明优选实施例中详细说明了具体的细节,而对本领域技术人员来说没有这些细节的描述也可以完全理解本发明。In order to provide the public with a thorough understanding of the present invention, specific details are described in the following preferred embodiments of the present invention, and those skilled in the art can fully understand the present invention without the description of these details.
在下列段落中参照附图以举例方式更具体地描述本发明。需说明的是,附图均采用较为简化的形式且均使用非精准的比例,仅用以方便、明晰地辅助说明本发明实施例的目的。The invention is described in more detail by way of example in the following paragraphs with reference to the accompanying drawings. It should be noted that the drawings are in a relatively simplified form and use imprecise proportions, and are only used to conveniently and clearly assist in explaining the embodiments of the present invention.
实施例1Example 1
如图1所示,本发明基于手机APP的酒店个性化智能照明方法,包括以下步骤:As shown in Figure 1, the hotel personalized intelligent lighting method based on mobile phone APP of the present invention includes the following steps:
S1、初始化,用户入住登记与信息采集,S1. Initialization, user check-in registration and information collection,
系统通过手机APP终端接受用户个人特性参数等注册信息,由主机单元转存到服务器的数据库中,所述用户个人特性参数包括年龄、性别、区域、职业、喜欢的色温、喜欢的亮度、入住人数和出行目的等类别,The system accepts registration information such as user personal characteristics parameters through the mobile APP terminal, and transfers them to the database of the server by the host unit. The user personal characteristics parameters include age, gender, region, occupation, favorite color temperature, favorite brightness, and number of guests. and travel purpose and other categories,
为每个用户个人特性参数类别,在其论域范围内建立模糊变量集,并为集合中的每个模糊变量建立隶属度函数,For each user's personal characteristic parameter category, a fuzzy variable set is established within its domain of discussion, and a membership function is established for each fuzzy variable in the set.
S2、酒店客房内的主机单元判断用户是否初次入住并构建用户个性向量,如果是初次入住则转S3,否则,通过手机APP终端接受用户对酒店客房内可调光灯组的色温、亮度进行调制的调光指令,将所述调光指令中的、对应可调光灯组中各灯的调光信号,进行处理获得对应的调制值,并将所述调制值按顺序排列为一个灯调制向量作为用户个性向量,然后,转S4,S2. The host unit in the hotel room determines whether the user is checking in for the first time and builds a user personality vector. If it is the first time, it goes to S3. Otherwise, the user modulates the color temperature and brightness of the dimmable light group in the hotel room through the mobile APP terminal. A dimming instruction, process the dimming signal corresponding to each lamp in the dimmable lamp group in the dimming instruction to obtain the corresponding modulation value, and arrange the modulation values in sequence into a lamp modulation vector As the user personality vector, then, go to S4,
S3、对于初次入住用户,首先,对其每一个个人特性参数,基于所述参数所在类别的每个模糊变量的隶属度函数,计算用户个人特性参数值对应的隶属度值,并将所有所述隶属度值按顺序排列为一个特性隶属度值向量作为用户个性向量,S3. For first-time check-in users, first, for each personal characteristic parameter, based on the membership function of each fuzzy variable in the category of the parameter, calculate the membership value corresponding to the user's personal characteristic parameter value, and combine all the The membership values are arranged in order into a characteristic membership value vector as the user personality vector,
S4、将用户个性向量分别保存到主机单元的存储模块及服务器数据库中,S4. Save the user personality vector to the storage module of the host unit and the server database respectively.
S5、将用户的所述用户个性向量与服务器数据库中其他历史入住用户数据进行对比,根据所述向量间的相似度,对用户偏好的灯调制向量进行推测,S5. Compare the user's user personality vector with other historical occupancy user data in the server database, and infer the user's preferred light modulation vector based on the similarity between the vectors.
S6、将推测结果通过手机APP终端推荐给用户,待用户确认或调整所述推荐后,将确认后的灯调制向量通过主机单元的输出模块传送给可调光灯组进行调光,同时,将灯调制向量存入服务器数据库。S6. Recommend the prediction results to the user through the mobile APP terminal. After the user confirms or adjusts the recommendation, the confirmed lamp modulation vector is transmitted to the dimmable lamp group through the output module of the host unit for dimming. At the same time, The lamp modulation vector is stored in the server database.
下面详细说明本发明的处理过程与应用。The processing process and application of the present invention will be described in detail below.
如图2所示,采用本发明中照明方法的基于手机APP的酒店个性化智能照明系统1000,包括基于手机APP的酒店个性化智能照明装置800、亮度及色温可调的可调光灯组200、服务器500及手机APP终端400。As shown in Figure 2, a hotel personalized intelligent lighting system 1000 based on a mobile phone APP using the lighting method of the present invention includes a hotel personalized intelligent lighting device 800 based on a mobile phone APP, and a dimmable lamp group 200 with adjustable brightness and color temperature. , server 500 and mobile APP terminal 400.
其中,基于手机APP的酒店个性化智能照明装置800包括主机单元100及用户接口单元300。主机单元100内设置有输入模块110、用户特性分析模块120、照明推荐模块130、输出模块140、存储模块150和用户调制分析模块160。Among them, the hotel personalized smart lighting device 800 based on the mobile phone APP includes a host unit 100 and a user interface unit 300. The host unit 100 is provided with an input module 110, a user characteristic analysis module 120, a lighting recommendation module 130, an output module 140, a storage module 150 and a user modulation analysis module 160.
在酒店客房照明系统中,基于手机APP的酒店个性化智能照明装置800分别与亮度及色温可调的可调光灯组200、服务器500及手机APP终端400相连。用户接口单元300、手机APP终端400均可以用来进行用户个人特性参数等注册信息的输入,以及对酒店客房内可调光灯组200的调光操作。并且注册信息和调光指令均通过输入模块110传送到主机单元100并由主机单元转存到服务器500内的数据库中。In the hotel guest room lighting system, the hotel personalized intelligent lighting device 800 based on the mobile phone APP is connected to the dimmable light group 200 with adjustable brightness and color temperature, the server 500 and the mobile phone APP terminal 400 respectively. Both the user interface unit 300 and the mobile APP terminal 400 can be used to input registration information such as the user's personal characteristic parameters, and to perform dimming operations on the dimmable lamp group 200 in the hotel room. And the registration information and dimming instructions are transmitted to the host unit 100 through the input module 110 and transferred to the database in the server 500 by the host unit.
结合图3所示,可调光色灯组200采用LED灯组,其由多个亮度、色温可调的LED灯具构成。LED灯具依据客房结构进行按功能分区的布置,对于将传统灯具换为LED灯具的改装酒店,则可按原有灯具布局将LED灯安置于酒店天花板上。LED灯与主机单元100通过有线通信连接,如采用DALI总线时一个主机单元可以连接多达64个LED灯。主机单元包含WIFI通信模块,可通过该无线模块连入客房环境中的无线路由器,以实现其与手机APP终端400的通信。同时,主机单元100还通过有线连接的方式,与用户接口单元300及服务器500的数据库相连。主机单元100根据用户接口单元300或手机APP终端400发送的操作信号,改变通过输出模块传送给LED灯驱动器的PWM波占空比数值,使得驱动器改变输送到各驱动通道的驱动电流,实现各LED灯的亮度、色温调制。As shown in FIG. 3 , the dimmable color lamp group 200 adopts an LED lamp group, which is composed of a plurality of LED lamps with adjustable brightness and color temperature. LED lamps are arranged according to functional zones according to the structure of the guest room. For converted hotels that replace traditional lamps with LED lamps, LED lamps can be placed on the hotel ceiling according to the original lamp layout. The LED lights are connected to the host unit 100 through wired communication. For example, when a DALI bus is used, one host unit can connect up to 64 LED lights. The host unit includes a WIFI communication module, which can be connected to the wireless router in the guest room environment to achieve communication with the mobile APP terminal 400. At the same time, the host unit 100 is also connected to the user interface unit 300 and the database of the server 500 through wired connections. The host unit 100 changes the PWM wave duty cycle value transmitted to the LED lamp driver through the output module according to the operation signal sent by the user interface unit 300 or the mobile APP terminal 400, so that the driver changes the driving current sent to each driving channel to realize each LED Lamp brightness and color temperature modulation.
结合图1、图2、图5所示,本发明通过分析入住用户对客房内灯组中各灯具出光的偏好,来进行客房灯光的调制,实现各种场景照明。偏好的分析依据主要来自当前用户对部分灯具的调光数据,基于已操作调光灯具的亮度、色温等调制数据,将这些数据与服务器数据库中已记录的历史入住用户对相同灯具的调制数据进行比较,分析其相似程度,从而基于历史入住用户对当前用户还未进行调光操作灯具的调制数据,对当前用户的调光偏好进行推测并将推测结果呈现给用户供其决策。基于数据的积累,当用户入住酒店新的房型或连锁酒店集团的其他酒店时,也能根据其已有的对灯具灯光的调制数据来进行新入住酒店客房中的调光偏好推测,从而实现个性化智能照明推荐与决策。As shown in Figure 1, Figure 2, and Figure 5, the present invention modulates the lighting in the guest room and realizes various scene lighting by analyzing the user's preference for the light output of each lamp in the light group in the guest room. The basis for the analysis of preferences mainly comes from the dimming data of some lamps by current users. Based on the brightness, color temperature and other modulation data of the operated dimming lamps, these data are compared with the modulation data of the same lamps by historical occupancy users recorded in the server database. Compare and analyze the degree of similarity, and then based on the modulation data of historical occupancy users on the current user's lamps that have not yet been dimmed, the dimming preference of the current user can be inferred and the inference results are presented to the user for decision-making. Based on the accumulation of data, when users check into a new room type of the hotel or other hotels in the chain hotel group, they can also speculate on the dimming preferences in the new hotel rooms based on their existing modulation data of lamps and lights, thereby achieving personalization. Intelligent lighting recommendations and decisions.
为此,用户调制分析模块160对用户通过APP终端400输入的调光指令中的、对应可调光灯组200中各灯的调光信号,进行处理获得对应的调制值,并将所述调制值按顺序排列为一个灯调制向量后分别保存到存储模块及服务器数据库中。To this end, the user modulation analysis module 160 processes the dimming signal corresponding to each lamp in the dimmable lamp group 200 in the dimming instruction input by the user through the APP terminal 400 to obtain the corresponding modulation value, and converts the modulation The values are arranged in sequence into a light modulation vector and then saved to the storage module and server database respectively.
结合图1、图2、图3所示,在酒店客房内,可调光LED灯组200,由布置于酒店天花板上的11个亮度、色温可调的LED灯构成。主机单元100、驱动器210放置于客房卫生间吊顶内,服务器500放置于酒店机房。As shown in Figures 1, 2, and 3, in a hotel room, the dimmable LED light group 200 consists of 11 LED lights with adjustable brightness and color temperature arranged on the ceiling of the hotel. The host unit 100 and the driver 210 are placed in the ceiling of the guest room bathroom, and the server 500 is placed in the hotel computer room.
当入住用户在前台登记时,依规定,需登记身份证信息、联系方式及客房号,该信息作为基本信息表可由酒店前台操作并写入服务器的数据库,其中,身份证号作为该用户的主键ID即唯一标识符。When a check-in user registers at the front desk, according to regulations, the ID card information, contact information and room number need to be registered. This information can be operated by the hotel front desk as a basic information table and written into the server database, where the ID number is used as the primary key of the user. ID is a unique identifier.
在服务器的数据库中,还设有用户在各种客房内的对LED灯的调光信息表,表中以灯调制向量的格式保存其调光偏好。表的每条记录中,包括用户名、身份证号、客房内11个LED灯各驱动通道的调制参数。In the database of the server, there is also a table of dimming information of LED lights used by users in various guest rooms. The table stores their dimming preferences in the format of lamp modulation vectors. Each record in the table includes the user name, ID number, and modulation parameters of each drive channel of the 11 LED lights in the guest room.
入住用户在前台登记完成后,进入客房并通过手机APP终端400连入主机单元100,手机APP终端400至少包含三个界面——登录界面、注册界面和灯具调制界面。在登录界面,将入住用户输入的信息,与服务器500数据库中记录的信息进行对比,若符合则判定为合规用户并允许进入后续界面;当入住用户登录成功后,可进入注册界面和灯具调制界面,并通过注册界面完善个人信息;同时,当用户进入灯具调制界面并操作滑动条进行灯具参数调制时,会触发手机APP终端400的sliderRelease()事件时,响应于该事件,APP终端400将调光信号发送给主机单元100。After the check-in user completes registration at the front desk, he enters the guest room and connects to the host unit 100 through the mobile APP terminal 400. The mobile APP terminal 400 includes at least three interfaces - a login interface, a registration interface and a lamp modulation interface. In the login interface, the information entered by the check-in user is compared with the information recorded in the server 500 database. If it matches, it is determined to be a compliant user and allowed to enter the subsequent interface; when the check-in user successfully logs in, he can enter the registration interface and lamp modulation interface, and complete personal information through the registration interface; at the same time, when the user enters the lamp modulation interface and operates the slider to modulate the lamp parameters, the sliderRelease() event of the mobile APP terminal 400 will be triggered. In response to this event, the APP terminal 400 will The dimming signal is sent to the host unit 100.
其中,APP终端400上有对各灯的调光界面,典型的,可以对每个灯的亮度,用一个滑动条来表示,用户上下移动滑动条的游标,可以在0~100%之间调节亮度;对于色温,则可以用一个类似指针型万用表的120~150度宽度扇区的扇环表示可调节色温区间,用户移动游标可调节色温。用户设定完成后,APP终端400将亮度、色温设定值通过调光信号发送给主机单元100。Among them, the APP terminal 400 has a dimming interface for each lamp. Typically, the brightness of each lamp can be represented by a slide bar. The user moves the cursor of the slide bar up and down to adjust it between 0 and 100%. Brightness; for color temperature, a sector ring similar to a pointer-type multimeter with a width of 120 to 150 degrees can be used to represent the adjustable color temperature range. The user can adjust the color temperature by moving the cursor. After the user setting is completed, the APP terminal 400 sends the brightness and color temperature setting values to the host unit 100 through the dimming signal.
主机单元100中的用户调制分析模块160对调光信号进行分析,分别根据预设的亮度-驱动电流、色温-驱动电流对应关系,将亮度设定值、色温设定值分别转换为对应驱动通道电流的PWM占空比值,即调制值,并将这些调制值按顺序排列为一个灯调制向量后分别保存到存储模块150及服务器500的数据库中。同时,将这些PWM占空比值通过输出模块140发送给可调光灯组200中的对应LED灯220的驱动器210,驱动器210相应改变驱动电流,从而将对应LED灯220的亮度、色温分别调节到APP终端400的设定值。The user modulation analysis module 160 in the host unit 100 analyzes the dimming signal, and converts the brightness setting value and color temperature setting value into corresponding driving channels according to the preset brightness-driving current and color temperature-driving current correspondence relationships. The PWM duty cycle value of the current is the modulation value, and these modulation values are arranged in sequence into a lamp modulation vector and then stored in the database of the storage module 150 and the server 500 respectively. At the same time, these PWM duty cycle values are sent to the driver 210 of the corresponding LED lamp 220 in the dimmable lamp group 200 through the output module 140. The driver 210 changes the driving current accordingly, thereby adjusting the brightness and color temperature of the corresponding LED lamp 220 to Setting value of APP terminal 400.
然后,照明推荐模块130将入住用户的灯调制向量与服务器500数据库中其他历史入住用户数据进行对比,根据所述向量间的相似度,对用户偏好的灯调制向量进行推测,并通过手机APP终端400推荐给用户;之后,在用户确认所述推荐后,通过输出模块140向可调光灯组200发送包括客房内所有LED灯各驱动通道调制值或驱动电流PWM占空比值的调光指令,实现场景照明。Then, the lighting recommendation module 130 compares the light modulation vector of the occupancy user with other historical occupancy user data in the database of the server 500, and infers the user's preferred light modulation vector based on the similarity between the vectors, and uses the mobile APP terminal to 400 is recommended to the user; then, after the user confirms the recommendation, a dimming instruction including the modulation value of each drive channel or the drive current PWM duty cycle value of all LED lights in the guest room is sent to the dimmable lamp group 200 through the output module 140. Implement scene lighting.
对于非首次入住用户,当该入住用户u通过手机APP终端对灯具色温、亮度进行调制时,用户调制分析模块对其调制信息进行记录,同时照明推荐模块根据其调制数值建立灯调制向量[Xu,Yu]:For non-first-time users, when the user u modulates the color temperature and brightness of the lamp through the mobile APP terminal, the user modulation analysis module records the modulation information, and the lighting recommendation module establishes the lamp modulation vector [X u , Y u ]:
其中,Xu表示用户u对客房内可调光灯组中部分灯如m盏灯具的亮度调制值,其相应数值分别为x1至xm,Yu表示用户u对客房内m盏灯具的色温调制值,其相应数值分别为y1至ym。 Among them , _ Color temperature modulation value, the corresponding values are y 1 to y m respectively.
其中已有调制操作的客房内m盏灯具,可以是属于当前入住客房的,也可以是该用户的以往入住中被其调制过灯光参数的其他灯具,例如,可以是该酒店所能获取数据范围内其他酒店内客房的灯具,或当前入住酒店中其他不同房型客房内的灯具,或当前入住酒店中相同房型但不同房号客房内的灯具。Among them, the m lamps in the guest room that have been modulated can belong to the current guest room, or other lamps whose lighting parameters have been modulated by the user in his previous stays. For example, they can be within the data range that the hotel can obtain. Lighting fixtures in guest rooms in other hotels, or in other guest rooms of different room types in the current hotel, or in guest rooms of the same room type but different room numbers in the current hotel.
然后,基于所述的灯调制向量,照明推荐模块将其与服务器数据库内储存的历史入住的其他用户v的灯调制向量进行对比,逐一计算向量相似度:Then, based on the light modulation vector, the lighting recommendation module compares it with the light modulation vectors of other historical users v stored in the server database, and calculates the vector similarity one by one:
sim(u,v)=α·simx+(1-α)·simy sim(u,v)=α·sim x +(1-α)·sim y
其中,m表示入住用户u和v共同调制过的灯具个数,xi,u、yi,u、xi,v、yi,v分别表示入住用户u和v对该灯具的亮度和色温调制值,分别表示相应调制值的平均值, 分别为用户u对m个已调制灯的亮度、色温调制值的算术平均值,Among them, m represents the number of lamps modulated by the occupancy users u and v, xi , u , y i, u , xi , v , y i, v respectively represent the brightness and color temperature of the lamps by the occupancy users u and v. modulation value, respectively represent the average value of the corresponding modulation values, are the arithmetic average of the brightness and color temperature modulation values of m modulated lights by user u respectively,
simx(u,v)、simy(u,v)、sim(u,v)分别表示u和v的亮度相似度、色温相似度和整体向量相似度,整体相似度为亮度相似度和色温相似度加权和,α为取值为0至1之间亮度相似度的权值。sim x (u, v), sim y (u, v), sim (u, v) respectively represent the brightness similarity, color temperature similarity and overall vector similarity of u and v. The overall similarity is the brightness similarity and color temperature. The weighted sum of similarities, α is the weight of the brightness similarity between 0 and 1.
作为优选,当与入住用户u共同调制过m个灯具的历史入住用户人数不够多时,可以将共同调制过的灯具个数值减小。Preferably, when the number of historical occupancy users who have jointly modulated m lamps with occupancy user u is not large enough, the number of lamps that have been jointly modulated can be reduced.
作为优选,当与入住用户u共同调制过m个灯具的历史入住用户人数不够多时,可以更换其中一个或几个灯具为,入住用户u未调制但所选的历史入住用户均对该更换后的灯具有调制记录的灯具,并且在计算向量相似度时将入住用户u对该更换后的灯具的调制值设为该灯具的缺省初始值如80%。As a preference, when the number of historical occupancy users who have jointly modulated m lamps with the occupancy user u is not large enough, one or several of the lamps can be replaced. The occupancy user u has not modulated but the selected historical occupancy users all have the replaced The lamp has a modulation record of the lamp, and when calculating the vector similarity, the modulation value of the replaced lamp by the resident user u is set as the default initial value of the lamp, such as 80%.
之后,在向量相似度计算完成后,取相似度最高的K个历史入住用户作为u的邻居并组成u的邻居集合,然后,根据邻居集合内入住用户的历史调制信息推测入住用户u的客房内灯具i的推荐亮度调制值x′u,i和色温调制值y′u,i:Afterwards, after the vector similarity calculation is completed, the K historical occupancy users with the highest similarity are taken as u's neighbors and form u's neighbor set. Then, based on the historical modulation information of the occupancy users in the neighbor set, it is inferred that the room of the occupancy user u Recommended brightness modulation value x′ u,i and color temperature modulation value y′ u,i of lamp i:
其中,i=1,2,...,n,n为入住客房内用户u还没确定调制值的灯的个数;Among them, i=1, 2, ..., n, n is the number of lamps in the guest room for which user u has not yet determined the modulation value;
输出模块将所述亮度调制值x′u,i和色温调制值y′u,i发送给手机APP终端,并将手机APP终端返回的确认后的调制数据存入数据库同时通过输出模块发送给灯组的驱动器。The output module sends the brightness modulation value x′ u, i and the color temperature modulation value y′ u, i to the mobile phone APP terminal, and stores the confirmed modulation data returned by the mobile phone APP terminal into the database and sends it to the lamp through the output module. Group of drives.
K根据数据记录的丰富程度进行优选,如初期设定为较小的一个值,当采集的数据记录越来越多时将其值初步增大到一个最大值。K is optimized based on the richness of the data records. For example, it is initially set to a smaller value, and when more and more data records are collected, its value is initially increased to a maximum value.
部分灯具由于功能比较独特如镜前灯,作为优选,若u的邻居集合内所有历史入住用户均未对某一灯具i进行调制,则认为该集合内所有入住用户均对该灯具调制值的缺省初始值表示满意,或认为该灯具亮度、色温值不对其入住体验产生影响,则使用灯具默认调制值作为推荐值,而非计算值。Some lamps have unique functions, such as mirror headlights. As a first choice, if all historical occupancy users in u's neighbor set have not modulated a certain lamp i, then it is considered that all occupancy users in the set have the modulation value of the lamp i. If you are satisfied with the initial value, or think that the brightness and color temperature of the lamp will not affect your occupancy experience, use the default modulation value of the lamp as the recommended value instead of the calculated value.
推荐亮度调制值x′u,i和色温调制值y′u,i计算完成后,组合为灯调制向量发送至手机APP终端,并显示在其界面上。用户可以直接确认该向量对应的调制参数列表,也可以对部分LED灯的调制参数进行修改。用户在APP界面上点击确认后,手机APP终端按照界面上的各项调制参数向主机单元发送灯具调制指令;进而,主机单元将灯调制向量存入服务器的数据库中,同时通过输出模块向LED灯的各驱动器发送相应的PWM占空比调制值,实现客房内的场景照明。After the recommended brightness modulation values x′ u, i and color temperature modulation values y′ u, i are calculated, the combination is a lamp modulation vector and sent to the mobile APP terminal and displayed on its interface. Users can directly confirm the modulation parameter list corresponding to this vector, or modify the modulation parameters of some LED lights. After the user clicks to confirm on the APP interface, the mobile APP terminal sends lamp modulation instructions to the host unit according to various modulation parameters on the interface; then, the host unit stores the lamp modulation vector in the database of the server, and at the same time sends it to the LED lamp through the output module Each driver sends the corresponding PWM duty cycle modulation value to realize the scene lighting in the guest room.
以上实现了对于非首次入住用户的个性化照明参数推荐,但是,对于首次入住用户而言,由于缺乏其对灯参数进行调制的数据,用以上方式无法实现推荐。对于这个冷启动问题,本发明基于对用户特性的分析来解决。The above achieves personalized lighting parameter recommendations for non-first-time users. However, for first-time users, the above method cannot implement recommendations due to the lack of data for modulating lamp parameters. For this cold start problem, the present invention solves it based on the analysis of user characteristics.
结合图1、图2、图4所示,首次入住用户,在手机APP终端400中完成登录后,在注册界面中,输入其注册信息,其中包括个人特性参数,如年龄、性别、区域、职业、喜欢的色温、喜欢的亮度、入住人数和出行目的等类别。在服务器500的数据库中,设有用户特性数据表,记录用户主键ID及这些用户个人特性参数。As shown in Figure 1, Figure 2, and Figure 4, a first-time user, after completing the login in the mobile APP terminal 400, enters his registration information in the registration interface, including personal characteristics parameters, such as age, gender, region, and occupation. , favorite color temperature, favorite brightness, number of guests, and travel purposes. In the database of the server 500, there is a user characteristic data table that records the user primary key ID and these user personal characteristic parameters.
用户特性分析模块120对用户个人特性数据进行按类别的处理与分析。首先,为每个类别在其论域范围建立模糊变量集并为集合中的每个模糊变量建立隶属度函数。The user characteristic analysis module 120 processes and analyzes user personal characteristic data by category. First, a fuzzy variable set is established for each category within its domain of discourse and a membership function is established for each fuzzy variable in the set.
参见图4所示,在图4a中,对于年龄参数类别,设置了少年、青年、中年、老年等4个模糊变量;在图4b中,对于色温参数类别,设置了低色温、中色温和高色温等3个模糊变量。Referring to Figure 4, in Figure 4a, for the age parameter category, four fuzzy variables such as juvenile, young, middle-aged, and old are set; in Figure 4b, for the color temperature parameter category, low color temperature, medium color temperature, and 3 fuzzy variables including high color temperature.
然后,根据图4中的所建立的隶属度函数,计算用户个人特性数据中每个数据对应其类别中各模糊变量的隶属度值,并将所有隶属度值按顺序排列为一个特性隶属度值向量。同时,将特性隶属度值向量分别保存到存储模块及服务器数据库中。Then, according to the membership function established in Figure 4, the membership value of each data in the user's personal characteristic data corresponding to each fuzzy variable in its category is calculated, and all the membership values are arranged in order into a characteristic membership value vector. At the same time, the characteristic membership value vector is saved to the storage module and server database respectively.
然后,照明推荐模块130将首次入住用户u的特性隶属度值向量与数据库中其他历史入住用户v的特性隶属度值向量进行对比,计算两个向量间的相似度,Then, the lighting recommendation module 130 compares the characteristic membership value vector of the first-time check-in user u with the characteristic membership value vector of other historical check-in users v in the database, and calculates the similarity between the two vectors,
其中,simi(u,v)为在第i个参数类别维度上,用户u、v的特性相似度,I为所述年龄等特性参数类别的集合,j为第i个参数类别的模糊变量集内模糊量的个数,μik(ui)、μik(vi)分别为用户u、v在第i个类别上的参数值对应于该类别中第k个模糊变量的隶属度值,k=1,2,...,j。Among them, sim i (u, v) is the characteristic similarity of users u and v in the i-th parameter category dimension, I is the set of characteristic parameter categories such as age, and j is the fuzzy variable of the i-th parameter category. The number of fuzzy variables in the set, μ ik (u i ) and μ ik (v i ) are respectively the parameter values of users u and v on the i-th category corresponding to the membership value of the k-th fuzzy variable in the category. ,k=1,2,...,j.
之后,按非首次入住用户类似的方式,完成个性化照明参数的推荐值计算并推送给首次入住用户u。After that, in a similar manner to non-first-time users, the recommended values of personalized lighting parameters are calculated and pushed to the first-time user u.
实施例2Example 2
区别于实施例1,本实施例中,采用对用户进行模糊分类的方法来对首次入住用户进行照明参数推荐。Different from Embodiment 1, in this embodiment, a method of fuzzy classification of users is used to recommend lighting parameters to first-time users.
当新的入住用户u首次入住并打开手机APP终端400注册后,首先依据用户注册信息,采用模糊分类方法对其进行分类,计算其类别:When a new check-in user u checks in for the first time and opens the mobile APP terminal 400 to register, first use the fuzzy classification method to classify the user according to the user registration information and calculate its category:
F=S+N+Y+DF=S+N+Y+D
其中S为入住用户性别如男用0表示女用1表示;N为入住人数,一般取值为1、2、3等;Y为入住用户年龄,取其实际年龄值减去20后的十位数且截止为0至4;D为出行目的,其数值由0至6,分别对应商务、旅游、会客、休闲、会议、办公和长租。F为入住用户的分类值,获得同样得分的用户被分入同一类别中,其数值可能取1到14,即将全部历史入住用户分为14类。Among them, S is the gender of the checking-in user. For example, male is represented by 0 and female is represented by 1; N is the number of guests, usually with values 1, 2, 3, etc.; The number and cut-off range is 0 to 4; D is the purpose of travel, and its value ranges from 0 to 6, corresponding to business, tourism, reception, leisure, conference, office and long-term rental respectively. F is the classification value of check-in users. Users with the same score are classified into the same category, and their values may range from 1 to 14, that is, all historical check-in users are divided into 14 categories.
然后,照明推荐模块将服务器数据库中所有分类值相同的历史入住用户作为u的邻居并组成u的邻居集合,然后,根据上述邻居集合内入住用户的历史调制信息通过计算算术平均值的方法来推测入住用户u的客房内灯具i的推荐亮度调制值x′u,i和色温调制值y′u,i,并推送给新的入住用户u。Then, the lighting recommendation module takes all historical occupancy users with the same classification value in the server database as u's neighbors and forms u's neighbor set. Then, based on the historical modulation information of the occupancy users in the above neighbor set, it is inferred by calculating the arithmetic mean. The recommended brightness modulation value x′ u, i and color temperature modulation value y′ u, i of the lamp i in the guest room of user u are pushed to the new user u.
实施例3Example 3
本实施例提供基于手机APP的酒店个性化智能照明系统,如图1~图4所示,基于手机APP的酒店个性化智能照明系统1000,包括基于手机APP的酒店个性化智能照明装置800、亮度及色温可调的可调光灯组200、服务器500及手机APP终端400。基于手机APP的酒店个性化智能照明装置800包括主机单元100及用户接口单元300。This embodiment provides a hotel personalized intelligent lighting system based on a mobile phone APP. As shown in Figures 1 to 4, the hotel personalized intelligent lighting system 1000 based on a mobile phone APP includes a hotel personalized intelligent lighting device 800 based on a mobile phone APP, brightness and a dimmable light set 200 with adjustable color temperature, a server 500 and a mobile APP terminal 400. The hotel personalized smart lighting device 800 based on the mobile phone APP includes a host unit 100 and a user interface unit 300 .
与灯组、用户接口单元、手机APP终端和服务器均分别相连的主机单元100包括输入模块110、用户特性分析模块120、照明推荐模块130、输出模块140、存储模块150和用户调制分析模块160。The host unit 100, which is respectively connected to the lamp set, the user interface unit, the mobile APP terminal and the server, includes an input module 110, a user characteristic analysis module 120, a lighting recommendation module 130, an output module 140, a storage module 150 and a user modulation analysis module 160.
用户从用户接口单元300或手机APP终端400输入用户个人特性参数等注册信息,同时还通过手机APP终端400输入对酒店客房内可调光灯组200色温、亮度进行调制的调光指令。这些信息和指令均通过主机单元100中的输入模块110传送到主机单元并由主机单元转存到服务器500的数据库中。The user inputs registration information such as user personal characteristic parameters from the user interface unit 300 or mobile APP terminal 400, and also inputs dimming instructions for modulating the color temperature and brightness of the dimmable lamp group 200 in the hotel room through the mobile APP terminal 400. These information and instructions are transmitted to the host unit through the input module 110 in the host unit 100 and transferred to the database of the server 500 by the host unit.
所述用户个人特性参数包括年龄、性别、区域、职业、喜欢的色温、喜欢的亮度、入住人数和出行目的等类别。The user's personal characteristic parameters include categories such as age, gender, region, occupation, preferred color temperature, preferred brightness, number of guests, and travel purpose.
当新的入住用户u首次入住酒店,用户特性分析模块120对用户个人特性数据进行按类别的处理与分析:When a new check-in user u checks into the hotel for the first time, the user characteristic analysis module 120 processes and analyzes the user's personal characteristic data by category:
首先,为每个类别在其论域范围建立模糊变量集并为集合中的每个模糊变量建立隶属度函数;First, a fuzzy variable set is established for each category within its domain of discourse and a membership function is established for each fuzzy variable in the set;
然后,根据所述隶属度函数,计算用户个人特性数据中每个数据对应其类别中各模糊变量的隶属度值,并将所有隶属度值按顺序排列为一个特性隶属度值向量;Then, according to the membership function, calculate the membership value of each fuzzy variable in the category corresponding to each data in the user's personal characteristic data, and arrange all the membership values in order into a characteristic membership value vector;
接着,将特性隶属度值向量分别保存到存储模块及服务器数据库中。Then, save the characteristic membership value vector to the storage module and server database respectively.
用户调制分析模块160对用户通过APP终端400输入的调光指令中的、对应可调光灯组中各灯的调光信号,进行处理获得对应的调制值,并将所述调制值按顺序排列为一个灯调制向量后分别保存到存储模块150及服务器500的数据库中。The user modulation analysis module 160 processes the dimming signals corresponding to each lamp in the dimmable lamp group in the dimming instructions input by the user through the APP terminal 400 to obtain corresponding modulation values, and arranges the modulation values in order. The modulation vector for a lamp is then saved in the database of the storage module 150 and the server 500 respectively.
照明推荐模块130将用户的所述特性隶属度值向量、灯调制向量与服务器数据库中其他历史入住用户数据进行对比,根据所述向量间的相似度,对用户的最终灯调制向量进行推测,并通过手机APP终端400推荐给用户,The lighting recommendation module 130 compares the user's characteristic membership value vector and lamp modulation vector with other historical occupancy user data in the server database, and infers the user's final lamp modulation vector based on the similarity between the vectors, and Recommended to users through mobile APP terminal 400,
在用户确认所述推荐后,通过输出模块140向可调光灯组200发送调光指令。After the user confirms the recommendation, a dimming instruction is sent to the dimmable lamp group 200 through the output module 140 .
其中,特性隶属度值向量的相似度按下式进行计算:Among them, the similarity of the feature membership value vector is calculated as follows:
其中, in,
simi(u,v)为在第i个参数类别维度上,新的入住用户u与数据库中历史入住用户v的特性相似度,I为所述年龄等类别集合,j为第i个参数类别的模糊变量集内模糊量的个数,μik(ui)、μik(vi)分别为用户u、v在第i个类别上的参数值对应于该类别中第k个模糊变量的隶属度值,k=1,2,...,j。sim i (u, v) is the characteristic similarity between the new check-in user u and the historical check-in user v in the database in the i-th parameter category dimension, I is the set of categories such as age, and j is the i-th parameter category The number of fuzzy variables in the fuzzy variable set, μ ik (u i ) and μ ik (v i ) are respectively the parameter values of users u and v on the i-th category corresponding to the k-th fuzzy variable in the category. Membership value, k=1, 2,..., j.
作为优选,用户接口单元300设有操作面板320用来进行参数输入,还设有显示屏310用来辅助参数的输入并将照明推荐模块的处理结果以列表的形式显示。Preferably, the user interface unit 300 is provided with an operation panel 320 for inputting parameters, and is also provided with a display screen 310 for assisting input of parameters and displaying the processing results of the lighting recommendation module in the form of a list.
以上,说明了本发明的几个实施方式,但这些实施方式是作为例子而提示的方式,并没有限定发明的范围。这些实施方式可以通过其他的各种方式实施,在不脱离发明的主旨的范围内,能够进行各种省略、置换、变更。这些实施方式或其变形包含于发明的范围或主旨,并同样地包含于权利要求书记载的发明及其等同的范围内。Several embodiments of the present invention have been described above. However, these embodiments are presented as examples and do not limit the scope of the invention. These embodiments can be implemented in various other forms, and various omissions, substitutions, and changes can be made without departing from the spirit of the invention. These embodiments and modifications thereof are included in the scope and gist of the invention, and are also included in the scope of the invention described in the claims and their equivalents.
Claims (8)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011469219.8A CN112734600B (en) | 2018-11-02 | 2019-04-03 | A personalized smart lighting method for hotels based on mobile phone APP |
Applications Claiming Priority (6)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811344742 | 2018-11-02 | ||
CN2018113447420 | 2018-11-02 | ||
CN2018113649992 | 2018-11-06 | ||
CN201811364999 | 2018-11-06 | ||
CN202011469219.8A CN112734600B (en) | 2018-11-02 | 2019-04-03 | A personalized smart lighting method for hotels based on mobile phone APP |
CN201910287080.6A CN109886841B (en) | 2018-11-02 | 2019-04-03 | Individualized intelligent lighting device in hotel based on cell-phone APP |
Related Parent Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910287080.6A Division CN109886841B (en) | 2018-11-02 | 2019-04-03 | Individualized intelligent lighting device in hotel based on cell-phone APP |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112734600A CN112734600A (en) | 2021-04-30 |
CN112734600B true CN112734600B (en) | 2023-09-22 |
Family
ID=66936886
Family Applications (4)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011470876.4A Withdrawn CN112419102A (en) | 2018-11-02 | 2019-04-03 | Individualized intelligent lighting device in hotel based on cell-phone APP |
CN202011469670.XA Withdrawn CN112419101A (en) | 2018-11-02 | 2019-04-03 | Hotel individualized intelligent lighting system based on mobile phone APP |
CN202011469219.8A Active CN112734600B (en) | 2018-11-02 | 2019-04-03 | A personalized smart lighting method for hotels based on mobile phone APP |
CN201910287080.6A Active CN109886841B (en) | 2018-11-02 | 2019-04-03 | Individualized intelligent lighting device in hotel based on cell-phone APP |
Family Applications Before (2)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011470876.4A Withdrawn CN112419102A (en) | 2018-11-02 | 2019-04-03 | Individualized intelligent lighting device in hotel based on cell-phone APP |
CN202011469670.XA Withdrawn CN112419101A (en) | 2018-11-02 | 2019-04-03 | Hotel individualized intelligent lighting system based on mobile phone APP |
Family Applications After (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910287080.6A Active CN109886841B (en) | 2018-11-02 | 2019-04-03 | Individualized intelligent lighting device in hotel based on cell-phone APP |
Country Status (1)
Country | Link |
---|---|
CN (4) | CN112419102A (en) |
Families Citing this family (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110831306B (en) * | 2019-12-13 | 2022-05-17 | 杭州罗莱迪思科技股份有限公司 | Intelligent lighting system and safety design method thereof |
CN114158166B (en) * | 2020-09-07 | 2023-05-16 | 中国联合网络通信集团有限公司 | Control method and device of lighting equipment |
CN112188694A (en) * | 2020-09-29 | 2021-01-05 | 上海佳勒电子有限公司 | Lamplight color temperature correction method, system and device and storage medium |
CN115315053A (en) * | 2022-07-11 | 2022-11-08 | 中船邮轮科技发展有限公司 | Adaptive dimming system, ship and control method |
CN117032048A (en) * | 2023-09-06 | 2023-11-10 | 东莞市粤广创照明有限公司 | Intelligent home lighting control system of Internet of things |
CN117651361B (en) * | 2023-10-08 | 2024-04-19 | 赫红建筑设计(广东)有限公司 | Lighting equipment optimization management system and method based on artificial intelligence |
CN117255443B (en) * | 2023-11-20 | 2024-01-26 | 苏州欧切斯实业有限公司 | LED constant-current dimming color temperature-adjusting power supply system and control method |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104462383A (en) * | 2014-12-10 | 2015-03-25 | 山东科技大学 | Movie recommendation method based on feedback of users' various behaviors |
CN105005579A (en) * | 2015-05-28 | 2015-10-28 | 携程计算机技术(上海)有限公司 | Personalized sorting method and system of hotel room types in OTA (Online Travel Agent) website |
CN105208128A (en) * | 2015-10-09 | 2015-12-30 | 北京威控科技股份有限公司 | Hotel guest room intelligent control system and method based on cloud platform |
KR20160010238A (en) * | 2014-07-19 | 2016-01-27 | 최광석 | Using the infrared camera image and a lighting system and method sensitivity |
CN105760547A (en) * | 2016-03-16 | 2016-07-13 | 中山大学 | Book recommendation method and system based on user clustering |
CN106900123A (en) * | 2017-02-16 | 2017-06-27 | 上海斐讯数据通信技术有限公司 | A kind of method of intelligent lighting, Cloud Server and electronic equipment |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9820643B2 (en) * | 2013-08-13 | 2017-11-21 | Jasper Ridge Inc. | Illumination evaluation or recommendation using visual function |
US9674929B2 (en) * | 2014-03-10 | 2017-06-06 | Massachusetts Institute Of Technology | Methods and apparatus for illumination control |
CN105183726A (en) * | 2014-05-28 | 2015-12-23 | 腾讯科技(深圳)有限公司 | Method and system for determining user similarity |
CN105050247B (en) * | 2015-06-24 | 2017-06-23 | 河北工业大学 | Light intelligent regulating system and its method based on expression Model Identification |
WO2017202632A1 (en) * | 2016-05-24 | 2017-11-30 | Philips Lighting Holding B.V. | A method of deriving a current user activity from a light setting. |
CN109059180B (en) * | 2018-07-27 | 2021-01-26 | 广东美的制冷设备有限公司 | Control method and device of air conditioner, air conditioner and computer readable storage medium |
CN109309988B (en) * | 2018-09-07 | 2021-01-12 | 宁波光谷智能科技有限公司 | Intelligent LED light scene generation and sharing method |
-
2019
- 2019-04-03 CN CN202011470876.4A patent/CN112419102A/en not_active Withdrawn
- 2019-04-03 CN CN202011469670.XA patent/CN112419101A/en not_active Withdrawn
- 2019-04-03 CN CN202011469219.8A patent/CN112734600B/en active Active
- 2019-04-03 CN CN201910287080.6A patent/CN109886841B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20160010238A (en) * | 2014-07-19 | 2016-01-27 | 최광석 | Using the infrared camera image and a lighting system and method sensitivity |
CN104462383A (en) * | 2014-12-10 | 2015-03-25 | 山东科技大学 | Movie recommendation method based on feedback of users' various behaviors |
CN105005579A (en) * | 2015-05-28 | 2015-10-28 | 携程计算机技术(上海)有限公司 | Personalized sorting method and system of hotel room types in OTA (Online Travel Agent) website |
CN105208128A (en) * | 2015-10-09 | 2015-12-30 | 北京威控科技股份有限公司 | Hotel guest room intelligent control system and method based on cloud platform |
CN105760547A (en) * | 2016-03-16 | 2016-07-13 | 中山大学 | Book recommendation method and system based on user clustering |
CN106900123A (en) * | 2017-02-16 | 2017-06-27 | 上海斐讯数据通信技术有限公司 | A kind of method of intelligent lighting, Cloud Server and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN109886841B (en) | 2020-12-22 |
CN112419101A (en) | 2021-02-26 |
CN109886841A (en) | 2019-06-14 |
CN112419102A (en) | 2021-02-26 |
CN112734600A (en) | 2021-04-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112734600B (en) | A personalized smart lighting method for hotels based on mobile phone APP | |
CN109890106B (en) | Hotel individualized intelligent lighting device based on user identity automatic identification | |
US10980096B2 (en) | Learning a lighting preference based on a reaction type | |
CN108111948A (en) | The visual output that server at speech interface equipment provides | |
CN111951157B (en) | Image processing method, device and storage medium | |
CN109445299A (en) | Intelligent home furnishing control method, system and storage medium | |
WO2020112442A1 (en) | Methods and systems for colorizing infrared images | |
CN116467033A (en) | Information display method and device, storage medium and computer equipment | |
CN112397064A (en) | Light adjusting method and device, terminal equipment and storage medium | |
CN111766800A (en) | Intelligent device control method based on scene and big data | |
CN116415061A (en) | Service recommendation method and related device | |
WO2024183776A1 (en) | Space template recommendation method and apparatus, electronic device, and storage medium | |
CN118283891A (en) | Music rhythm atmosphere lamp system based on vehicle-mounted vision and vehicle body control | |
WO2024032707A1 (en) | Service recommendation method and electronic device | |
CN117076428A (en) | An information transfer and migration method and a full-scenario smart life system | |
KR102387770B1 (en) | System for providing music auto play service using enviroment variable | |
CN113919904A (en) | House resource screening method, device, equipment and storage medium | |
CN110955326A (en) | Information data transmission communication system and method thereof | |
KR102834349B1 (en) | Service Apparatus, Method and System for Forming Social Relationships | |
CN116209112A (en) | LED ceiling lamp based on gesture estimation and automatic scene recognition | |
CN119442380B (en) | Automobile product interaction design system based on multidimensional user experience data analysis | |
CN116383524B (en) | Image cover generation method, system, equipment and storage medium based on interest points | |
CN119847014A (en) | Method, device, system, equipment and storage medium for controlling central control equipment | |
CN119767475A (en) | Personalized lighting control method, medium and equipment based on AI and IoT | |
CN113359490A (en) | Intelligent home central control system and central control equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20240710 Address after: 230000 B-1015, wo Yuan Garden, 81 Ganquan Road, Shushan District, Hefei, Anhui. Patentee after: HEFEI MINGLONG ELECTRONIC TECHNOLOGY Co.,Ltd. Country or region after: China Address before: 310018, No. 258, source street, Xiasha Higher Education Park, Hangzhou, Zhejiang Patentee before: China Jiliang University Country or region before: China |
|
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20250121 Address after: No. 1206, 11th Floor, Building 4, No. 89 Jianguo Road, Chaoyang District, Beijing 100020 Patentee after: Letu Xingbang (Beijing) E-commerce Co.,Ltd. Country or region after: China Address before: 230000 B-1015, wo Yuan Garden, 81 Ganquan Road, Shushan District, Hefei, Anhui. Patentee before: HEFEI MINGLONG ELECTRONIC TECHNOLOGY Co.,Ltd. Country or region before: China |