CN113691603B - Method, device and system for controlling Internet of things device based on context awareness - Google Patents

Method, device and system for controlling Internet of things device based on context awareness Download PDF

Info

Publication number
CN113691603B
CN113691603B CN202110947701.6A CN202110947701A CN113691603B CN 113691603 B CN113691603 B CN 113691603B CN 202110947701 A CN202110947701 A CN 202110947701A CN 113691603 B CN113691603 B CN 113691603B
Authority
CN
China
Prior art keywords
event
user
motion
internet
control rule
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110947701.6A
Other languages
Chinese (zh)
Other versions
CN113691603A (en
Inventor
邵钧
刘洋洋
章晶晶
郭凯
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Samsung Electronics China R&D Center
Samsung Electronics Co Ltd
Original Assignee
Samsung Electronics China R&D Center
Samsung Electronics 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 Samsung Electronics China R&D Center, Samsung Electronics Co Ltd filed Critical Samsung Electronics China R&D Center
Priority to CN202110947701.6A priority Critical patent/CN113691603B/en
Publication of CN113691603A publication Critical patent/CN113691603A/en
Application granted granted Critical
Publication of CN113691603B publication Critical patent/CN113691603B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • H04L67/125Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks involving control of end-device applications over a network
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/0002Remote monitoring of patients using telemetry, e.g. transmission of vital signals via a communication network
    • A61B5/0015Remote monitoring of patients using telemetry, e.g. transmission of vital signals via a communication network characterised by features of the telemetry system
    • A61B5/0022Monitoring a patient using a global network, e.g. telephone networks, internet
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/01Measuring temperature of body parts ; Diagnostic temperature sensing, e.g. for malignant or inflamed tissue
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/02Detecting, measuring or recording pulse, heart rate, blood pressure or blood flow; Combined pulse/heart-rate/blood pressure determination; Evaluating a cardiovascular condition not otherwise provided for, e.g. using combinations of techniques provided for in this group with electrocardiography or electroauscultation; Heart catheters for measuring blood pressure
    • A61B5/0205Simultaneously evaluating both cardiovascular conditions and different types of body conditions, e.g. heart and respiratory condition
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/103Detecting, measuring or recording devices for testing the shape, pattern, colour, size or movement of the body or parts thereof, for diagnostic purposes
    • A61B5/11Measuring movement of the entire body or parts thereof, e.g. head or hand tremor, mobility of a limb
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/103Detecting, measuring or recording devices for testing the shape, pattern, colour, size or movement of the body or parts thereof, for diagnostic purposes
    • A61B5/11Measuring movement of the entire body or parts thereof, e.g. head or hand tremor, mobility of a limb
    • A61B5/1116Determining posture transitions
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/103Detecting, measuring or recording devices for testing the shape, pattern, colour, size or movement of the body or parts thereof, for diagnostic purposes
    • A61B5/11Measuring movement of the entire body or parts thereof, e.g. head or hand tremor, mobility of a limb
    • A61B5/1118Determining activity level
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/48Other medical applications
    • A61B5/4806Sleep evaluation
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/68Arrangements of detecting, measuring or recording means, e.g. sensors, in relation to patient
    • A61B5/6801Arrangements of detecting, measuring or recording means, e.g. sensors, in relation to patient specially adapted to be attached to or worn on the body surface
    • A61B5/6802Sensor mounted on worn items
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16HHEALTHCARE INFORMATICS, i.e. INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR THE HANDLING OR PROCESSING OF MEDICAL OR HEALTHCARE DATA
    • G16H20/00ICT specially adapted for therapies or health-improving plans, e.g. for handling prescriptions, for steering therapy or for monitoring patient compliance
    • G16H20/30ICT specially adapted for therapies or health-improving plans, e.g. for handling prescriptions, for steering therapy or for monitoring patient compliance relating to physical therapies or activities, e.g. physiotherapy, acupressure or exercising
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16YINFORMATION AND COMMUNICATION TECHNOLOGY SPECIALLY ADAPTED FOR THE INTERNET OF THINGS [IoT]
    • G16Y40/00IoT characterised by the purpose of the information processing
    • G16Y40/30Control
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16YINFORMATION AND COMMUNICATION TECHNOLOGY SPECIALLY ADAPTED FOR THE INTERNET OF THINGS [IoT]
    • G16Y40/00IoT characterised by the purpose of the information processing
    • G16Y40/30Control
    • G16Y40/35Management of things, i.e. controlling in accordance with a policy or in order to achieve specified objectives

Landscapes

  • Health & Medical Sciences (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Engineering & Computer Science (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Public Health (AREA)
  • Biophysics (AREA)
  • Animal Behavior & Ethology (AREA)
  • Molecular Biology (AREA)
  • Veterinary Medicine (AREA)
  • Surgery (AREA)
  • Physics & Mathematics (AREA)
  • Pathology (AREA)
  • Biomedical Technology (AREA)
  • Heart & Thoracic Surgery (AREA)
  • Physiology (AREA)
  • Oral & Maxillofacial Surgery (AREA)
  • Dentistry (AREA)
  • Computing Systems (AREA)
  • Cardiology (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • General Business, Economics & Management (AREA)
  • Business, Economics & Management (AREA)
  • Signal Processing (AREA)
  • Primary Health Care (AREA)
  • Pulmonology (AREA)
  • Epidemiology (AREA)
  • Physical Education & Sports Medicine (AREA)
  • Medical Treatment And Welfare Office Work (AREA)
  • Measuring Pulse, Heart Rate, Blood Pressure Or Blood Flow (AREA)

Abstract

The present disclosure provides a method, device and system for controlling an internet of things device based on context awareness. The method comprises the following steps: the terminal equipment acquires user data related to the behavior and state of the user; generating context aware events reflecting the context in which the user is located based on the user data; sending the generated context awareness event to the Internet of things equipment; the method comprises the steps that the Internet of things equipment receives a situation awareness event sent by the terminal equipment, acquires a control rule corresponding to the received situation awareness event, and controls the Internet of things equipment according to the acquired control rule. According to the method disclosed by the invention, the state of the user can be combined with the body building, the body building type is recommended, and the user is guided to perform scientific body building exercise; according to the body-building state of the user, the Internet of things equipment is controlled and adjusted to match with the body-building of the user, so that the body-building environment is more comfortable.

Description

Method, device and system for controlling Internet of things device based on context awareness
Technical Field
The disclosure relates to the technical field of internet of things control, in particular to a method, device and system for controlling internet of things equipment based on context awareness.
Background
With the increasing level of living, more and more people are beginning to appreciate the importance of exercise fitness to maintain health and fitness. Accordingly, many intelligent health monitoring devices are presented, better than foreign Bodymedia Fit, fitbit, domestic millet bracelet, li Ning intelligent running shoes and the like. The devices are portable devices, can monitor the physical and movement states of people in real time, and inform people through a data feedback mode. However, these devices simply feed back the states of some physical and exercise parameters of the user, such as heart rate, amount of exercise, amount of blood oxygen, energy consumption, exercise position, etc., to the user, and do not combine the states of the user with exercise to guide the user to perform scientific exercise.
In addition, through the development of the Internet of things technology, all articles are connected with the Internet of things through the information sensing equipment, and information exchange is carried out to realize intelligent identification and management. The application of the Internet of things in the field of fitness is mainly embodied in the aspects of artificial intelligence analysis, such as opening a faucet by using a bracelet, opening a running machine by using the bracelet, transmitting health data in real time, monitoring temperature and humidity conditions and air conditions in a gymnasium in real time, adjusting and processing and the like. At present, the situation that the exercise and fitness state of a user is combined with the state of the Internet of things equipment, the state of the Internet of things equipment is adjusted according to the exercise state of the user, and the exercise environment is more comfortable does not exist.
Disclosure of Invention
The present disclosure provides a method, apparatus, and system for controlling an internet of things device based on context awareness to at least solve the problem in the related art that the state of a user is not combined with fitness, and guide the user to perform scientific fitness exercise; the problem that the internet of things equipment is adjusted according to the body-building state of the user to match with the body-building of the user is not solved, and the problem is not solved.
According to a first aspect of the present disclosure, there is provided a method for controlling an internet of things device, comprising: acquiring user data related to the behavior and state of a user; generating context aware events reflecting the context in which the user is located based on the user data; and sending the generated context-aware event to the internet of things device to control the internet of things device to adapt to the current context of the user.
According to a first aspect of the present disclosure, the step of generating context aware events based on user data comprises: generating context aware events related to a user's motion state based on the user data, wherein the context aware events related to the user's motion state include: at least one of a motion start event, a motion intensity event, and a motion end event.
According to a first aspect of the present disclosure, the step of generating context-aware events related to the motion state of the user based on the user data comprises one of the following operations: detecting a user start motion based on the user data, generating a motion start event; generating a motion intensity event based on the user data during the motion, wherein the motion intensity event comprises at least one of a plurality of motion events having different motion intensity levels, wherein the motion intensity level of the motion intensity event is determined based on a correspondence of a user heart rate in the user data to the motion intensity level; a motion end event is generated based on the user data detecting a user end motion.
According to a first aspect of the present disclosure, the step of transmitting the generated context aware event to the internet of things device to control the internet of things device to adapt to the current context of the user comprises: and sending the generated context aware event to an internet of things platform, wherein the internet of things platform is configured to forward the context aware event to the internet of things device, and the internet of things device is configured to control the internet of things device according to a control rule corresponding to the received context aware event.
According to a first aspect of the present disclosure, the step of obtaining user data further comprises: the step of creating user daily behavioral profile based on the user data, the step of generating context aware events based on the user data further comprises: generating context aware events related to a physical state of a user based on user data, wherein the method for controlling the internet of things device further comprises: acquiring the state condition of the user according to the situation awareness event related to the physical state of the user and the daily behavior data of the user; and recommending the exercise types with different exercise intensities according to the obtained state conditions of the user.
According to a first aspect of the present disclosure, the user daily behavioral profile includes at least one of age, gender, average sleep time, recommended sleep time, average work time, average commute time, and favorite temperature of the user; context-aware events related to the physical state of the user include at least one of sleep events, work events, stress events, and commute events.
According to a first aspect of the present disclosure, the step of obtaining a status condition of a user from context aware events and user daily behavioral profiles comprises: determining sleeping conditions, working time conditions, pressure values and commute conditions of the user according to the context awareness events and the daily behavior data of the user; calculating a state value of the user based on the sleeping condition, the working time condition, the pressure value and the commute condition of the user; and obtaining the state condition of the user corresponding to the state value of the user according to the state value of the user.
According to a first aspect of the present disclosure, the step of determining a sleep condition, a working time condition, a pressure value and a commute condition of a user from context aware events and user daily behavioral data comprises: determining the sleeping condition of the user according to the sleeping time parameter of the current day included in the sleeping event, the average sleeping time and the recommended sleeping time included in the daily behavior data of the user; determining the working time condition of the user according to the working time parameter of the current day included in the working event and the average working time included in the daily behavior data of the user; determining a pressure value of the user according to a pressure level parameter included in the pressure event, wherein the pressure level is one of a plurality of pressure levels corresponding to different pressure values; and determining the commute situation of the user according to the commute time parameter of the current day included in the commute event and the average commute time included in the daily behavior data of the user.
According to a first aspect of the present disclosure, the step of calculating a status value of the user based on the sleep condition, the working time condition, the pressure value and the commute condition of the user comprises: different weights are allocated to the sleeping situation, the working time situation, the pressure value and the commute situation of the user, wherein the state value of the user is a weighted sum of the sleeping situation, the working time situation, the pressure value and the commute situation of the user.
According to a second aspect of the present disclosure, there is provided a terminal device comprising: a data acquisition module configured to acquire user data related to the behavior and state of a user; an event generation module configured to generate context aware events reflecting a context in which a user is located based on user data; the Internet of things control module is configured to send the generated context-aware event to the Internet of things device to control the Internet of things device to adapt to the current context of the user.
According to a second aspect of the disclosure, the event generation module is further configured to: generating context aware events related to a user's motion state based on the user data, wherein the context aware events related to the user's motion state include: at least one of a motion start event, a motion intensity event, and a motion end event.
According to a second aspect of the disclosure, the event generation module is further configured to perform one of: detecting a user start motion based on the user data, generating a motion start event; generating a motion intensity event based on the user data during the motion, wherein the motion intensity event comprises at least one of a plurality of motion events having different motion intensity levels, wherein the motion intensity level of the motion intensity event is determined based on a correspondence of a user heart rate in the user data to the motion intensity level; a motion end event is generated based on the user data detecting a user end motion.
According to a second aspect of the present disclosure, the internet of things control module is further configured to: and sending the generated context aware event to an internet of things platform, wherein the internet of things platform is configured to forward the context aware event to the internet of things device, and the internet of things device is configured to control the internet of things device according to a control rule corresponding to the received context aware event.
According to a second aspect of the present disclosure, the data acquisition module is further configured to: the event generation module is further configured to establish user daily behavioral profile based on the user data: generating context-aware events related to a physical state of a user based on user data, wherein the terminal device further comprises: the exercise recommendation module is configured to obtain the state condition of the user according to the situation awareness event related to the physical state of the user and the daily behavior data of the user; and recommending the exercise types with different exercise intensities according to the obtained state conditions of the user.
According to a second aspect of the present disclosure, the user daily behavioral profile includes at least one of age, gender, average sleep time, recommended sleep time, average work time, average commute time, and favorite temperature of the user, and the context-aware event related to the physical state of the user includes at least one of a sleep event, a work event, a stress event, and a commute event.
According to a second aspect of the present disclosure, the motion recommendation module is further configured to: determining sleeping conditions, working time conditions, pressure values and commute conditions of the user according to the context awareness events and the daily behavior data of the user; calculating a state value of the user based on the sleeping condition, the working time condition, the pressure value and the commute condition of the user; and obtaining the state condition of the user corresponding to the state value of the user according to the state value of the user.
According to a second aspect of the present disclosure, the motion recommendation module is further configured to: determining the sleeping condition of the user according to the sleeping time parameter of the current day included in the sleeping event, the average sleeping time and the recommended sleeping time included in the daily behavior data of the user; determining the working time condition of the user according to the working time parameter of the current day included in the working event and the average working time included in the daily behavior data of the user; determining a pressure value of the user according to a pressure level parameter included in the pressure event, wherein the pressure level is one of a plurality of pressure levels corresponding to different pressure values; and determining the commute situation of the user according to the commute time parameter of the current day included in the commute event and the average commute time included in the daily behavior data of the user.
According to a second aspect of the present disclosure, the motion recommendation module is further configured to: different weights are allocated to the sleeping situation, the working time situation, the pressure value and the commute situation of the user, wherein the state value of the user is a weighted sum of the sleeping situation, the working time situation, the pressure value and the commute situation of the user.
According to a third aspect of the present disclosure, there is provided a method for controlling an internet of things device, comprising: receiving a context aware event transmitted by the terminal device, wherein the context aware event reflects a context in which a user using the terminal device is located and is generated based on user data relating to a behavior and a state of the user; acquiring a control rule corresponding to the received context awareness event; and controlling the Internet of things equipment according to the acquired control rule.
According to a third aspect of the present disclosure, the context aware event comprises at least one of a motion start event, a motion intensity event and a motion end event, the step of obtaining a control rule corresponding to the received context aware event comprising one of: when the received situation awareness event is a motion start event, acquiring a control rule corresponding to the motion start event; when the received context aware event is a motion intensity event, obtaining a control rule corresponding to the motion intensity event, wherein the motion intensity event comprises at least one of a plurality of motion events having a plurality of motion intensity levels; and when the received situation awareness event is a movement ending event, acquiring a control rule corresponding to the movement ending event.
According to a third aspect of the present disclosure, the step of controlling the internet of things device according to the acquired control rule includes: determining whether the control rule needs control parameters according to the acquired control rule; responding to the control rule requiring control parameters, acquiring corresponding control parameters from the situation awareness event, and controlling the state of the Internet of things equipment according to the acquired control rule and control parameters; and responding to the control rule without control parameters, and controlling the state of the Internet of things equipment according to the acquired control rule.
According to a third aspect of the present disclosure, when the internet of things device is a sweeping robot, the acquiring the control rule corresponding to the movement start event includes: setting a control rule for prohibiting a motion area for the sweeping robot based on the area position control parameters; wherein the zone position control parameter is carried by a motion start event; the acquiring of the control rule corresponding to the movement ending event comprises: the control rule of the forbidden movement area is cancelled for the sweeping robot.
According to a third aspect of the present disclosure, setting a control rule for prohibiting a movement area for a sweeping robot based on an area position control parameter includes: opening a forbidden zone function of the sweeping robot, and setting a forbidden movement zone for the sweeping robot based on zone position control parameters; or opening a virtual wall function of the sweeping robot; the control rule for canceling the forbidden movement region for the sweeping robot comprises the following steps: closing the forbidden zone function of the sweeping robot; or the virtual wall function of the sweeping robot is closed.
According to a third aspect of the present disclosure, when the internet of things device is an air conditioning system, acquiring the control rule corresponding to the movement start event includes: setting temperature and/or wind power control rules for the air conditioning system based on the favorite temperature and the exercise intensity control parameters of the user; wherein, the favorite temperature and the exercise intensity control parameters of the user are carried by the exercise start event; the obtaining of the control rule corresponding to the exercise intensity event comprises: based on the control parameters of the exercise intensity level corresponding to the exercise intensity event, adjusting the temperature and/or wind power control rules for the air conditioning system; the acquiring of the control rule corresponding to the movement ending event comprises: based on the heart rate control parameters of the user, adjusting the temperature and/or wind power control rules for the air conditioning system; wherein the heart rate control parameters of the user are carried by the end of exercise event.
According to a third aspect of the present disclosure, setting control rules for temperature and/or wind power for an air conditioning system based on user preference temperature and exercise intensity control parameters includes: taking the favorite temperature of a user as an initial temperature, the higher the level of the exercise intensity is, the more the temperature set for the air conditioning system is reduced on the basis of the initial temperature; and/or the higher the level of exercise intensity, the stronger the wind power set for the air conditioning system.
According to a third aspect of the present disclosure, when the internet of things device is an intelligent speaker, obtaining a control rule corresponding to a motion start event includes: setting a control rule for playing music for the intelligent sound box; the obtaining of the control rule corresponding to the exercise intensity event comprises: based on the motion intensity level control parameters corresponding to the motion intensity events, adjusting the control rule of the played music type for the intelligent sound box; and/or prompting a user to pay attention to a safe control rule by the intelligent sound box when the control parameter of the exercise intensity level corresponding to the exercise intensity event is high; the acquiring of the control rule corresponding to the movement ending event comprises: and adjusting the control rule of the type of playing music for the intelligent sound box.
According to a fourth aspect of the present disclosure, there is provided an internet of things device, comprising: a receiving module configured to receive a context aware event transmitted by the terminal device, wherein the context aware event reflects a context in which a user using the terminal device is located and is generated based on user data related to a behavior and a state of the user; a control rule acquisition module configured to acquire a control rule corresponding to the received context awareness event; and the control module is configured to control the Internet of things equipment according to the acquired control rule.
According to a fourth aspect of the present disclosure, the context aware event comprises at least one of a motion start event, a motion intensity event, and a motion end event, the control rule acquisition module being further configured to perform one of: when the received situation awareness event is a motion start event, acquiring a control rule corresponding to the motion start event; when the received context aware event is a motion intensity event, obtaining a control rule corresponding to the motion intensity event, wherein the motion intensity event comprises at least one of a plurality of motion events having a plurality of motion intensity levels; and when the received situation awareness event is a movement ending event, acquiring a control rule corresponding to the movement ending event.
According to a fourth aspect of the present disclosure, the control module is configured to: determining whether the control rule needs control parameters according to the acquired control rule; responding to the control rule requiring control parameters, acquiring corresponding control parameters from the situation awareness event, and controlling the state of the Internet of things equipment according to the acquired control rule and control parameters; and responding to the control rule without control parameters, and controlling the state of the Internet of things equipment according to the acquired control rule.
According to a fourth aspect of the present disclosure, when the internet of things device is a sweeping robot, the acquiring the control rule corresponding to the movement start event includes: setting a control rule for prohibiting a motion area for the sweeping robot based on the area position control parameters; wherein the zone position control parameter is carried by a motion start event; the acquiring of the control rule corresponding to the movement ending event comprises: the control rule of the forbidden movement area is cancelled for the sweeping robot.
According to a fourth aspect of the present disclosure, setting a control rule for prohibiting a movement area for a sweeping robot based on an area position control parameter includes: opening a forbidden zone function of the sweeping robot, and setting a forbidden movement zone for the sweeping robot based on zone position control parameters; or opening a virtual wall function of the sweeping robot; the control rule for canceling the forbidden movement region for the sweeping robot comprises the following steps: closing the forbidden zone function of the sweeping robot; or the virtual wall function of the sweeping robot is closed.
According to a fourth aspect of the present disclosure, when the internet of things device is an air conditioning system, acquiring the control rule corresponding to the movement start event includes: setting temperature and/or wind power control rules for the air conditioning system based on the favorite temperature and the exercise intensity control parameters of the user; wherein, the favorite temperature and the exercise intensity control parameters of the user are carried by the exercise start event; the obtaining of the control rule corresponding to the exercise intensity event comprises: based on the control parameters of the exercise intensity level corresponding to the exercise intensity event, adjusting the temperature and/or wind power control rules for the air conditioning system; the acquiring of the control rule corresponding to the movement ending event comprises: based on the heart rate control parameters of the user, adjusting the temperature and/or wind power control rules for the air conditioning system; wherein the heart rate control parameters of the user are carried by the end of exercise event.
According to a fourth aspect of the present disclosure, setting control rules for temperature and/or wind power for an air conditioning system based on user preference temperature and exercise intensity control parameters includes: taking the favorite temperature of a user as an initial temperature, the higher the level of the exercise intensity is, the more the temperature set for the air conditioning system is reduced on the basis of the initial temperature; and/or the higher the level of exercise intensity, the stronger the wind power set for the air conditioning system.
According to a fourth aspect of the present disclosure, when the internet of things device is an intelligent speaker, obtaining a control rule corresponding to a motion start event includes: setting a control rule for playing music for the intelligent sound box; the obtaining of the control rule corresponding to the exercise intensity event comprises: based on the motion intensity level control parameters corresponding to the motion intensity events, adjusting the control rule of the played music type for the intelligent sound box; and/or prompting a user to pay attention to a safe control rule by the intelligent sound box when the control parameter of the exercise intensity level corresponding to the exercise intensity event is high; the acquiring of the control rule corresponding to the movement ending event comprises: and adjusting the control rule of the type of playing music for the intelligent sound box.
According to a fifth aspect of the present disclosure, there is provided a method for controlling an internet of things device, comprising: acquiring, by a terminal device, user data related to a user's behavior and status; generating context aware events reflecting the context in which the user is located based on the user data; the generated context awareness event is sent to the Internet of things equipment; the method comprises the steps that the Internet of things equipment receives a situation awareness event sent by the terminal equipment, acquires a control rule corresponding to the received situation awareness event, and controls the Internet of things equipment according to the acquired control rule.
According to a fifth aspect of the present disclosure, the step of generating a context aware event based on user data comprises: generating context aware events related to a user's motion state based on the user data, wherein the context aware events related to the user's motion state include: at least one of a motion start event, a motion intensity event, and a motion end event.
According to a fifth aspect of the present disclosure, the step of generating context-aware events related to the state of motion of the user based on the user data comprises one of the following operations: detecting a user start motion based on the user data, generating a motion start event; generating a motion intensity event based on the user data during the motion, wherein the motion intensity event comprises at least one of a plurality of motion events having different motion intensity levels, wherein the motion intensity level of the motion intensity event is determined based on a correspondence of a user heart rate in the user data to the motion intensity level; a motion end event is generated based on the user data detecting a user end motion.
According to a fifth aspect of the present disclosure, the step of sending the generated context aware event to the internet of things device comprises: and sending the generated context-aware event to an Internet of things platform, and forwarding the context-aware event to Internet of things equipment by the Internet of things platform.
According to a fifth aspect of the present disclosure, the step of acquiring user data further comprises: the step of creating user daily behavioral profile based on the user data, the step of generating context aware events based on the user data further comprises: generating context aware events related to a physical state of a user based on user data, wherein the method for controlling the internet of things device further comprises: the terminal equipment obtains the state condition of the user according to the situation awareness event related to the physical state of the user and the daily behavior data of the user; and recommending the exercise types with different exercise intensities according to the obtained state conditions of the user.
According to a fifth aspect of the present disclosure, the user daily behavioral profile includes at least one of age, gender, average sleep time, recommended sleep time, average work time, average commute time, and favorite temperature of the user, and the context-aware event related to the physical state of the user includes at least one of a sleep event, a work event, a stress event, and a commute event.
According to a fifth aspect of the present disclosure, the step of obtaining a status condition of a user from context-aware events and user daily behavioral profiles comprises: determining sleeping conditions, working time conditions, pressure values and commute conditions of the user according to the context awareness events and the daily behavior data of the user; calculating a state value of the user based on the sleeping condition, the working time condition, the pressure value and the commute condition of the user; and obtaining the state condition of the user corresponding to the state value of the user according to the state value of the user.
According to a fifth aspect of the present disclosure, the step of determining a sleep condition, a working time condition, a pressure value and a commute condition of a user from context aware events and user daily behavioral data comprises: determining the sleeping condition of the user according to the sleeping time parameter of the current day included in the sleeping event, the average sleeping time and the recommended sleeping time included in the daily behavior data of the user; determining the working time condition of the user according to the working time parameter of the current day included in the working event and the average working time included in the daily behavior data of the user; determining a pressure value of the user according to a pressure level parameter included in the pressure event, wherein the pressure level is one of a plurality of pressure levels corresponding to different pressure values; and determining the commute situation of the user according to the commute time parameter of the current day included in the commute event and the average commute time included in the daily behavior data of the user.
According to a fifth aspect of the present disclosure, the step of calculating a status value of the user based on the sleep condition, the working time condition, the pressure value and the commute condition of the user comprises: different weights are allocated to the sleeping situation, the working time situation, the pressure value and the commute situation of the user, wherein the state value of the user is a weighted sum of the sleeping situation, the working time situation, the pressure value and the commute situation of the user.
According to a fifth aspect of the present disclosure, the step of obtaining a control rule corresponding to the received context aware event comprises one of: when the received situation awareness event is a motion start event, acquiring a control rule corresponding to the motion start event; when the received context aware event is a motion intensity event, obtaining a control rule corresponding to the motion intensity event, wherein the motion intensity event comprises at least one of a plurality of motion events having a plurality of motion intensity levels; and when the received situation awareness event is a movement ending event, acquiring a control rule corresponding to the movement ending event.
According to a fifth aspect of the present disclosure, the step of controlling the internet of things device according to the acquired control rule includes: determining whether the control rule needs control parameters according to the acquired control rule; responding to the control rule requiring control parameters, acquiring corresponding control parameters from the situation awareness event, and controlling the state of the Internet of things equipment according to the acquired control rule and control parameters; and responding to the control rule without control parameters, and controlling the state of the Internet of things equipment according to the acquired control rule.
According to a fifth aspect of the present disclosure, when the internet of things device is a sweeping robot, the acquiring the control rule corresponding to the movement start event includes: setting a control rule for prohibiting a motion area for the sweeping robot based on the area position control parameters; wherein the zone position control parameter is carried by a motion start event; the acquiring of the control rule corresponding to the movement ending event comprises: the control rule of the forbidden movement area is cancelled for the sweeping robot.
According to a fifth aspect of the present disclosure, setting a control rule for prohibiting a movement area for a sweeping robot based on an area position control parameter includes: opening a forbidden zone function of the sweeping robot, and setting a forbidden movement zone for the sweeping robot based on zone position control parameters; or opening a virtual wall function of the sweeping robot; the control rule for canceling the forbidden movement region for the sweeping robot comprises the following steps: closing the forbidden zone function of the sweeping robot; or the virtual wall function of the sweeping robot is closed.
According to a fifth aspect of the present disclosure, when the internet of things device is an air conditioning system, acquiring the control rule corresponding to the movement start event includes: setting temperature and/or wind power control rules for the air conditioning system based on the favorite temperature and the exercise intensity control parameters of the user; wherein, the favorite temperature and the exercise intensity control parameters of the user are carried by the exercise start event; the obtaining of the control rule corresponding to the exercise intensity event comprises: based on the control parameters of the exercise intensity level corresponding to the exercise intensity event, adjusting the temperature and/or wind power control rules for the air conditioning system; the acquiring of the control rule corresponding to the movement ending event comprises: based on the heart rate control parameters of the user, adjusting the temperature and/or wind power control rules for the air conditioning system; wherein the heart rate control parameters of the user are carried by the end of exercise event.
According to a fifth aspect of the present disclosure, setting control rules for temperature and/or wind power for an air conditioning system based on user preference temperature and exercise intensity control parameters includes: taking the favorite temperature of a user as an initial temperature, the higher the level of the exercise intensity is, the more the temperature set for the air conditioning system is reduced on the basis of the initial temperature; and/or the higher the level of exercise intensity, the stronger the wind power set for the air conditioning system.
According to a fifth aspect of the present disclosure, when the internet of things device is an intelligent speaker, obtaining a control rule corresponding to a motion start event includes: setting a control rule for playing music for the intelligent sound box; the obtaining of the control rule corresponding to the exercise intensity event comprises: based on the motion intensity level control parameters corresponding to the motion intensity events, adjusting the control rule of the played music type for the intelligent sound box; and/or prompting a user to pay attention to a safe control rule by the intelligent sound box when the control parameter of the exercise intensity level corresponding to the exercise intensity event is high; the acquiring of the control rule corresponding to the movement ending event comprises: and adjusting the control rule of the type of playing music for the intelligent sound box.
According to a sixth aspect of the present disclosure, there is provided a system for controlling an internet of things device, comprising a terminal device configured to obtain user data related to a user's behaviour and status; generating context aware events reflecting the context in which the user is located based on the user data; sending the generated context awareness event to the Internet of things equipment; the system comprises an Internet of things device, a terminal device and a control rule, wherein the Internet of things device is configured to receive a situation awareness event sent by the terminal device, acquire a control rule corresponding to the received situation awareness event and control the Internet of things device according to the acquired control rule.
According to a sixth aspect of the present disclosure, the terminal device is further configured to: generating context aware events related to a user's motion state based on the user data, wherein the context aware events related to the user's motion state include: at least one of a motion start event, a motion intensity event, and a motion end event.
According to a sixth aspect of the present disclosure, the terminal device is further configured to perform one of the following operations: detecting a user start motion based on the user data, generating a motion start event; generating a motion intensity event based on the user data during the motion, wherein the motion intensity event comprises at least one of a plurality of motion events having different motion intensity levels, wherein the motion intensity level of the motion intensity event is determined based on a correspondence of a user heart rate in the user data to the motion intensity level; a motion end event is generated based on the user data detecting a user end motion.
According to a sixth aspect of the present disclosure, the system for controlling an internet of things device may further include an internet of things platform configured to receive a context aware event sent by the terminal device, and forward the context aware event to the internet of things device; the terminal device is further configured to: the generated context awareness event is sent to an Internet of things platform; the internet of things device is further configured to: and receiving the context-aware event forwarded by the Internet of things platform.
According to a sixth aspect of the present disclosure, the terminal device is further configured to: establishing user daily behavior data based on the user data, generating context-aware events related to the physical state of the user based on the user data, and obtaining the state situation of the user according to the context-aware events related to the physical state of the user and the user daily behavior data; and recommending the exercise types with different exercise intensities according to the obtained state conditions of the user.
According to a sixth aspect of the present disclosure, the user daily behavioral profile includes at least one of age, gender, average sleep time, recommended sleep time, average work time, average commute time, and favorite temperature of the user, and the context-aware event related to the physical state of the user includes at least one of a sleep event, a work event, a stress event, and a commute event.
According to a sixth aspect of the present disclosure, the terminal device is further configured to: determining sleeping conditions, working time conditions, pressure values and commute conditions of the user according to the context awareness events and the daily behavior data of the user; calculating a state value of the user based on the sleeping condition, the working time condition, the pressure value and the commute condition of the user; and obtaining the state condition of the user corresponding to the state value of the user according to the state value of the user.
According to a sixth aspect of the present disclosure, the terminal device is further configured to: determining the sleeping condition of the user according to the sleeping time parameter of the current day included in the sleeping event, the average sleeping time and the recommended sleeping time included in the daily behavior data of the user; determining the working time condition of the user according to the working time parameter of the current day included in the working event and the average working time included in the daily behavior data of the user; determining a pressure value of the user according to a pressure level parameter included in the pressure event, wherein the pressure level is one of a plurality of pressure levels corresponding to different pressure values; and determining the commute situation of the user according to the commute time parameter of the current day included in the commute event and the average commute time included in the daily behavior data of the user.
According to a sixth aspect of the present disclosure, the terminal device is further configured to: different weights are allocated to the sleeping situation, the working time situation, the pressure value and the commute situation of the user, wherein the state value of the user is a weighted sum of the sleeping situation, the working time situation, the pressure value and the commute situation of the user.
According to a sixth aspect of the present disclosure, the internet of things device is further configured to perform one of: when the received situation awareness event is a motion start event, acquiring a control rule corresponding to the motion start event; when the received context aware event is a motion intensity event, obtaining a control rule corresponding to the motion intensity event, wherein the motion intensity event comprises at least one of a plurality of motion events having a plurality of motion intensity levels; and when the received situation awareness event is a movement ending event, acquiring a control rule corresponding to the movement ending event.
According to a sixth aspect of the present disclosure, the internet of things device is further configured to: determining whether the control rule needs control parameters according to the acquired control rule; responding to the control rule requiring control parameters, acquiring corresponding control parameters from the situation awareness event, and controlling the state of the Internet of things equipment according to the acquired control rule and control parameters; and responding to the control rule without control parameters, and controlling the state of the Internet of things equipment according to the acquired control rule.
According to a sixth aspect of the present disclosure, when the internet of things device is a sweeping robot, the acquiring the control rule corresponding to the movement start event includes: setting a control rule for prohibiting a motion area for the sweeping robot based on the area position control parameters; wherein the zone position control parameter is carried by a motion start event; the acquiring of the control rule corresponding to the movement ending event comprises: the control rule of the forbidden movement area is cancelled for the sweeping robot.
According to a sixth aspect of the present disclosure, setting a control rule for prohibiting a movement area for a sweeping robot based on an area position control parameter includes: opening a forbidden zone function of the sweeping robot, and setting a forbidden movement zone for the sweeping robot based on zone position control parameters; or opening a virtual wall function of the sweeping robot; the control rule for canceling the forbidden movement region for the sweeping robot comprises the following steps: closing the forbidden zone function of the sweeping robot; or the virtual wall function of the sweeping robot is closed.
According to a sixth aspect of the present disclosure, when the internet of things device is an air conditioning system, acquiring the control rule corresponding to the movement start event includes: setting temperature and/or wind power control rules for the air conditioning system based on the favorite temperature and the exercise intensity control parameters of the user; wherein, the favorite temperature and the exercise intensity control parameters of the user are carried by the exercise start event; the obtaining of the control rule corresponding to the exercise intensity event comprises: based on the control parameters of the exercise intensity level corresponding to the exercise intensity event, adjusting the temperature and/or wind power control rules for the air conditioning system; the acquiring of the control rule corresponding to the movement ending event comprises: based on the heart rate control parameters of the user, adjusting the temperature and/or wind power control rules for the air conditioning system; wherein the heart rate control parameters of the user are carried by the end of exercise event.
According to a sixth aspect of the present disclosure, setting control rules for temperature and/or wind power for an air conditioning system based on user preference temperature and exercise intensity control parameters includes: taking the favorite temperature of a user as an initial temperature, the higher the level of the exercise intensity is, the more the temperature set for the air conditioning system is reduced on the basis of the initial temperature; and/or the higher the level of exercise intensity, the stronger the wind power set for the air conditioning system.
According to a sixth aspect of the present disclosure, when the internet of things device is an intelligent speaker, obtaining a control rule corresponding to a motion start event includes: setting a control rule for playing music for the intelligent sound box; the obtaining of the control rule corresponding to the exercise intensity event comprises: based on the motion intensity level control parameters corresponding to the motion intensity events, adjusting the control rule of the played music type for the intelligent sound box; and/or prompting a user to pay attention to a safe control rule by the intelligent sound box when the control parameter of the exercise intensity level corresponding to the exercise intensity event is high; the acquiring of the control rule corresponding to the movement ending event comprises: and adjusting the control rule of the type of playing music for the intelligent sound box.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects: the state of the user is combined with the body building, the body building type is recommended, and the user is guided to perform scientific body building exercise; according to the body-building state of the user, the Internet of things equipment is controlled and adjusted to match with the body-building of the user, so that the body-building environment is more comfortable.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure and do not constitute an undue limitation on the disclosure.
Fig. 1 is a system environment illustrating a system for controlling an internet of things device according to an exemplary embodiment.
Fig. 2 shows a flowchart of a method for controlling an internet of things device at a terminal device side according to an exemplary embodiment.
Fig. 3 illustrates a state case in which a user is displayed on a terminal device and a recommended motion type according to an exemplary embodiment.
Fig. 4 shows a flowchart of a method for controlling an internet of things device at the internet of things device side according to an exemplary embodiment.
Fig. 5 is a block diagram illustrating a terminal device according to an exemplary embodiment.
Fig. 6 is a block diagram illustrating an internet of things device according to an exemplary embodiment.
Fig. 7 shows a flowchart of a method for controlling an internet of things device in which a terminal device and the internet of things device participate together according to an exemplary embodiment.
Fig. 8 illustrates a system for controlling an internet of things device including a terminal device and the internet of things device according to an exemplary embodiment.
Fig. 9 is a block diagram illustrating an electronic device according to an exemplary embodiment of the present disclosure.
Detailed Description
In order to enable those skilled in the art to better understand the technical solutions of the present disclosure, the technical solutions of the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the foregoing figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the disclosure described herein may be capable of operation in sequences other than those illustrated or described herein. The embodiments described in the examples below are not representative of all embodiments consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present disclosure as detailed in the accompanying claims.
It should be noted that, in this disclosure, "at least one of the items" refers to a case where three types of juxtaposition including "any one of the items", "a combination of any of the items", "an entirety of the items" are included. For example, "including at least one of a and B" includes three cases side by side as follows: (1) comprises A; (2) comprising B; (3) includes A and B. For example, "at least one of the first and second steps is executed", that is, three cases are juxtaposed as follows: (1) performing step one; (2) executing the second step; (3) executing the first step and the second step.
Fig. 1 is a system environment illustrating a system for controlling an internet of things device according to an exemplary embodiment.
As shown in fig. 1, the system environment may include terminal devices 100, internet of things devices 200-1, 200-2, … 200-n, and optionally, the system environment may also include an internet of things platform (e.g., the IoT platform in fig. 1). Here, the terminal device 100 may be a device having a communication function and a user data collection function, and for example, the terminal device 100 in the embodiment of the present disclosure may be a mobile terminal (such as a smart phone, a mobile phone, a video phone, etc.), a wearable device (such as a smart glasses, a Head Mounted Display (HMD), an electronic garment, an electronic bracelet, an electronic necklace, an electronic accessory, an electronic tattoo, or a smart watch, etc.), a sensor (such as a gesture sensor, a gyro sensor, an acceleration sensor, a grip sensor, an Infrared (IR) sensor, a bio-sensor, a temperature sensor, a humidity sensor, an illuminance sensor, etc.), an ambulatory medical device, an internet of things device, a tablet computer, a desktop, a laptop, a handheld computer, a notebook computer, a netbook, a personal digital assistant (personal DIGITAL ASSISTANT, PDA), an augmented reality (augmented reality, AR)/a Virtual Reality (VR), etc. The terminal device 100 may collect data of a user, such as heart rate, movement amount, blood pressure, blood sugar, sleep, acceleration, posture, body temperature, exercise intensity, etc. The internet of things device 200 may be connected to the internet for information exchange and communication, and may implement devices that are remotely monitored and controlled, including smart home (such as an intelligent air purifier platform, a floor sweeping robot, an intelligent refrigerator, an intelligent television, an air conditioning system, an intelligent sound box, an intelligent television, an intelligent power strip, an intelligent kitchen and bathroom, etc.), intelligent medical (such as an intelligent sphygmomanometer, an intelligent blood glucose meter, etc.), intelligent wearing (such as an intelligent old man wearing, an intelligent watch), etc. Further, the terminal device 100 may access and communicate with the internet of things device 200 through a wireless cellular communication network (4G, 5G network), wifi network, or the like, or access and communicate with the internet of things device 200 via an internet of things platform. Here, the internet of things platform is not limited to a cloud platform, but may be a home IoT gateway. According to an exemplary embodiment of the present disclosure, the internet of things device 200 may also communicate with other internet of things devices in addition to the terminal device 100. For example, the internet of things device 200-1 may send various data to other internet of things devices 200-2, …, 200-n or receive various data from other internet of things devices 200-2, …, 200-n.
Fig. 2 shows a flowchart of a method for controlling an internet of things device at a terminal device side according to an exemplary embodiment. It should be appreciated that the method as described in fig. 2 may be performed by running an application related to the control of the internet of things device on the terminal device.
First, in step S210, user data about the behavior and state of the user is acquired. Here, for example, a user routinely uses a wearable device (e.g., a smart watch, a smart bracelet, etc.), based on which various user data may be acquired. User data related to the behavior and status of a user may include: heart rate, exercise amount, blood pressure, acceleration, posture, body temperature, exercise intensity, sleep time, work time, commute time, pressure level, etc. According to an embodiment of the present disclosure, the step of obtaining user data further comprises: user daily behavioral profile is established based on the user data, wherein the user daily behavioral profile includes at least one of age, gender, average sleep time, recommended sleep time, average work time, average commute time, and favorites temperature of the user. In addition, the daily behavior profile of the user may also be preset by the user and stored in the database, for example, the user may register the daily behavior profile in the terminal device in advance through an Application (APP), thereby acquiring user data corresponding to the user's daily behavior profile from the database when the method according to the embodiment of the present disclosure is performed.
Next, in step S220, context aware events reflecting the context in which the user is located are generated based on the user data.
Here, context awareness refers to a technique that enables a computer device to "perceive" the current context through sensors and the like and related techniques. By analyzing the information of the environment, state and emotion of the user, the body language or gesture of the user is known and identified, and corresponding preparation is made more predictively. That is, the context aware event may be an informational event based on the user's behavioral state, e.g., if the handset detects that the user has opened a music application and played music, the handset may generate an event that is listening to the music. For example, context aware events may also include the following events reflecting the context in which the user is located: start sleeping, get up, start driving, start working, end working, start moving, move and end moving, etc. It should be appreciated that context aware events are not limited in this regard and that one skilled in the art may introduce other context aware events depending on the actual situation.
The step of generating context aware events based on user data according to embodiments of the present disclosure may comprise: context aware events related to the user's motion state are generated based on the user data, wherein the context aware events related to the user's motion state may include at least one of a motion start event, a motion intensity event, and a motion end event. The step of generating context-aware events related to the state of motion of the user based on the user data may comprise one of: detecting a user start motion based on the user data, generating a motion start event; generating a motion intensity event based on the user data during the motion, wherein the motion intensity event may include at least one of a plurality of motion events (at least one of a low intensity motion event, a medium intensity motion event, a high intensity motion event, and a very high intensity motion event) having different motion intensity levels, wherein the motion intensity level of the motion intensity event may be determined based on a correspondence of a user heart rate in the user data to the motion intensity level; a motion end event is generated based on the user data detecting a user end motion. It should be understood that the context-aware events related to motion states and corresponding motion intensity levels herein are merely examples, which are not limited by the present disclosure.
Here, for example, a motion start event may be generated based on user data such as heart rate, acceleration, posture, body temperature, etc., detecting that a user starts motion. In the course of exercise, the generation of the exercise intensity event based on the user data may be, for example, dividing the exercise intensity in the course of exercise into 4 levels corresponding to the 4 exercise intensity events with reference to RPE (Rating of Perceived Exertion) evaluation method in which heart rate directly corresponds to exercise intensity, and then, according to the following table 1, the exercise intensity level determined based on the correspondence of the heart rate of the user to the exercise intensity level, and the exercise event having different exercise intensity levels may be determined.
TABLE 1
Current heart rate/maximum heart rate Intensity of exercise Context aware events
<59% Low and low Hypo-intense exercise event
60%-79% In (a) Medium intensity exercise event
80%-89% High height High intensity motion event
>=90% Extremely high Extremely high intensity motion events
Wherein the maximum heart rate in table 1 may be defined as 220-years. For example, based on the user heart rate, calculating the user heart rate/maximum heart rate as 65%, then the exercise intensity level may be determined to be medium, and accordingly, a medium intensity exercise event with the exercise intensity level of medium may be generated. In addition, during the movement, the movement state of the user can be presented to the user on the terminal device, for example, the following information contents can be displayed or provided by sound on the terminal device: motion state: in sports, the kind of sports: yoga, exercise intensity: low.
In addition, for example, an end of motion event may be generated based on user data such as heart rate, acceleration, posture, body temperature, etc., detecting that the user is stopped moving. Further, control parameters may be included in the generated motion start event, motion intensity event, and motion end event, for example, the control parameters may include zone location control parameters, favorite temperature, motion intensity, user heart rate, and the like.
Then, in step S230, the generated context aware event is transmitted to the internet of things device to control the internet of things device to adapt to the current context of the user. The step of transmitting the generated context aware event to the internet of things device to control the internet of things device to adapt to the current context of the user according to embodiments of the present disclosure may include: and sending the generated context aware event to an internet of things platform, wherein the internet of things platform is configured to forward the context aware event to the internet of things device, and the internet of things device is configured to control the internet of things device according to a control rule corresponding to the received context aware event. According to the method for controlling the Internet of things equipment at the terminal equipment side, under the condition that a user does not need to do any operation, the Internet of things equipment is controlled and adjusted according to the body-building state of the user so as to be matched with the body-building of the user, and the body-building environment is more comfortable.
Further, the step of generating a context aware event reflecting the context in which the user is located based on the user data (step S220) may further comprise: context aware events related to the physical state of the user are generated based on the user data, wherein the context aware events related to the physical state of the user may include at least one of sleep events, work events, stress events, and commute events. Here, for example, based on user data of the user such as a time of getting up, a time of sleeping, etc., a sleep event of the user may be generated, wherein the sleep event may include a sleep time parameter of the same day (e.g., sleep time=time of getting up-sleep time). For example, based on user data of a start work time, an end work time, etc. of the user, a work event of the user may be generated, where the work event includes a work time parameter of the day (e.g., work time = end work time-start work time). For example, based on user data such as a user's pressure level, a user's pressure event may be generated, wherein the pressure event includes a pressure level parameter (e.g., the pressure level may include three levels, low, medium, and high). For example, based on user data of a user's start commute time, end commute time, etc., a user's commute event may be generated, where the commute event includes a commute time parameter for the day (e.g., commute time = end commute time-start commute time). It should be understood that the generation of the sleep time parameter, the working time parameter, the pressure level parameter, and the commute time parameter herein are merely examples, which are not limited by the present disclosure. In addition, the generated context-aware events and the control parameters included therein can also be used to build and refine the user's daily behavioral profile.
Then, in step S240, the state situation of the user is obtained according to the context-aware events related to the physical state of the user and the user' S daily behavioral profile. The step of obtaining a status condition of a user from context aware events and user daily behavioral data according to embodiments of the present disclosure may include: determining sleeping conditions, working time conditions, pressure values and commute conditions of the user according to the context awareness events and the daily behavior data of the user; calculating a state value of the user based on the sleeping condition, the working time condition, the pressure value and the commute condition of the user; and obtaining the state condition of the user corresponding to the state value of the user according to the state value of the user.
For example, determining the sleep, work time, pressure and commute conditions of the user from context-aware events and user daily behavioral data may be calculated, for example, from the following:
Determining the sleeping condition of the user according to the context awareness event and the daily behavior data of the user as follows: sleep condition c1=as/rs×1+a/as×4, where as and rs are average sleep time and recommended sleep time included in the user daily behavior data, respectively, and a is a sleep time parameter of the day included in the sleep event.
The working time condition of the user is determined according to the context awareness event and the daily behavior data of the user: working time situation c2=aw/b×5, where aw is the average working time included in the user daily behavior data, and b is the working time parameter of the day included in the working event.
Determining the pressure value of the user according to the context awareness event and the daily behavior data of the user as follows: the pressure value p is 5 when the pressure level is low, 3 when the pressure level is high, and 1 when the pressure level is high. Wherein the pressure level is a pressure level parameter included in the pressure event.
Determining the commute situation of the user according to the context awareness event and the daily behavior data of the user as follows: commute c4=ac/d 5, where ac is the average commute time included in the user's daily behavioral profile and d is the current day's commute time parameter included in the commute event.
Accordingly, calculating the status value of the user based on the sleep condition, the working time condition, the pressure value and the commute condition of the user may be, for example: state value s=c1×0.3+c2×0.25+p×0.4+c4×0.05. It should be understood that the determination of sleep conditions, on-time conditions, pressure values and commute conditions, and calculation of status values herein are examples only, and the present disclosure is not limited in this regard.
In addition, according to an exemplary embodiment of the present disclosure, obtaining a state of a user corresponding to a state value of the user according to the state value of the user may be: dividing the state values into 3 levels, wherein the state values are 0-4, and the state condition of the user is tired; the state value is 4-6, the state condition of the user is normal, the state condition of the user is better than the state value is 6. For example, the average sleep time is 7 (hours), the recommended sleep time is 8 (hours), and the sleep time of the day is 6 (hours); the average working time is 8 hours, the working time of the day is 8 hours, the pressure value is 3, the average commute time is 20 minutes, the commute time of the day is 30 minutes, the state value S is 3.768, and the state condition of the corresponding user is tired. It should be understood that the correspondence between the status values and the status conditions herein is merely an example, and the present disclosure is not limited thereto.
Then, in step S250, the movement types of different movement intensities are recommended according to the obtained state situation of the user. According to embodiments of the present disclosure, different exercise intensities may include lower intensity, general intensity, and higher intensity. The state conditions of the user are tired, normal and better respectively correspond to the recommended exercise type, and the exercise intensity is light, general and high. The recommended exercise types with different exercise intensities are shown in table 2, the exercise intensities are represented by metabolic equivalent MET (metablic equivalent), for example, when the state of the user is tired, the exercise type with lower exercise intensity (for example, walking (2.7 km/h)) can be recommended, and when the state of the user is better, the exercise type with higher exercise intensity (for example, open/close jump) can be recommended.
TABLE 2
It should be understood that the correspondence of the status condition and the exercise intensity and the types of exercise that may be recommended by the various exercise intensities herein are merely examples, which are not limited by the present disclosure. In addition, the status situation of the user and the recommended movement type may be displayed on the terminal device, as shown in fig. 3, for example, the following may be displayed on the terminal device: state of the art: tired, sports advice: today's physical state is tirer and less intense, relaxed movements, such as walking (2.7 km/h), are recommended.
As described above, according to the method for controlling the internet of things device at the terminal device side according to the exemplary embodiment of the present disclosure, the state of the user is also combined with the fitness, the fitness type is recommended, and the user is guided to perform scientific fitness exercises.
Fig. 4 shows a flowchart of a method for controlling an internet of things device at the internet of things device side according to an exemplary embodiment. It should be appreciated that the method as described in fig. 4 may be performed by running an application related to control of the internet of things device on the internet of things device.
First, in step S410, a context aware event transmitted by a terminal device is received, wherein the context aware event reflects a context in which a user using the terminal device is located and is generated based on user data related to the behavior and state of the user. Context aware events according to embodiments of the present disclosure may include at least one of a motion start event, a motion intensity event, and a motion end event. Here, the internet of things device may receive the context aware event transmitted by the terminal device, and may also receive the context aware event transmitted by the terminal device forwarded via the internet of things platform.
Next, in step S420, a control rule corresponding to the received context aware event is acquired. The step of obtaining a control rule corresponding to a received context aware event according to an embodiment of the present disclosure may include one of: when the received situation awareness event is a motion start event, acquiring a control rule corresponding to the motion start event; when the received context aware event is a motion intensity event, obtaining a control rule corresponding to the motion intensity event, wherein the motion intensity event may include at least one of a plurality of motion events having a plurality of motion intensity levels; and when the received situation awareness event is a movement ending event, acquiring a control rule corresponding to the movement ending event.
Here, the internet of things device may include, for example, a floor sweeping robot, an air conditioning system, an intelligent sound box, an intelligent television, an intelligent refrigerator, an intelligent air purification system, an intelligent power strip, an intelligent kitchen and bathroom, and the like. The internet of things device may include, for example, a control rule base, where control rules corresponding to different context awareness events are stored, and after the internet of things device receives the context awareness events, the control rules corresponding to the context awareness events may be obtained from the control rule base. Here, the control rule base may be preset and stored in a memory of the internet of things device, or may be acquired and/or updated by communicating with the terminal device, the internet of things platform, or the server.
Then, in step S430, the internet of things device is controlled according to the acquired control rule. The step of controlling the internet of things device according to the acquired control rule according to the embodiment of the present disclosure may include: determining whether the control rule needs control parameters according to the acquired control rule; responding to the control rule requiring control parameters, acquiring corresponding control parameters from the situation awareness event, and controlling the state of the Internet of things equipment according to the acquired control rule and control parameters; and responding to the control rule without control parameters, and controlling the state of the Internet of things equipment according to the acquired control rule.
After the control rule is acquired by the internet of things device, the internet of things device needs to judge whether the control rule needs to be matched with the control parameter, if the control rule needs to be matched with the control parameter, the internet of things device acquires the control parameter carried by or corresponding to the context awareness event, and controls the state of the internet of things device according to the acquired control rule and the control parameter. If the control rule does not need to cooperate with the use of the control parameter, the Internet of things equipment controls the state of the Internet of things equipment according to the acquired control rule.
According to an exemplary embodiment of the internet of things device, taking the internet of things device as an example of a sweeping robot, when the context awareness event is a motion start event, the obtaining a control rule corresponding to the motion start event may be: and setting a control rule for prohibiting a movement area for the sweeping robot based on the area position control parameter. Here, the sweeping robot receives a movement start event transmitted from the terminal device, and the movement start event may carry an area position control parameter (for example, a position coordinate of a user movement area), thereby prohibiting the sweeping robot from entering the user movement area after the user starts movement. The sweeping robot can acquire the control rules corresponding to the movement starting event from the control rule library, and acquire the area position control parameters carried by the sweeping robot in the movement starting event according to the control rules, so that a movement forbidden area is set for the sweeping robot according to the acquired control rules and the area position control parameters.
The setting of the prohibited movement area may specifically be to open a prohibited area function of the sweeping robot, set the prohibited movement area for the sweeping robot based on the area position control parameter, and the sweeping robot will automatically avoid the prohibited movement area. Or the virtual wall function of the sweeping robot is opened. When a motion inhibition area is set for the sweeping robot in a virtual wall mode, a motion start event of the terminal equipment can be sent to other Internet of things equipment (such as an intelligent control socket), so that the Internet of things equipment is controlled to place the virtual wall in the motion area of a user, the virtual wall can be placed by an Internet of things platform receiving the motion start event, and the virtual wall function of the sweeping robot can automatically avoid the virtual wall after being opened.
When the context aware event is a motion end event, the obtaining of the control rule corresponding to the motion end event may be: the control rule of the forbidden movement area is cancelled for the sweeping robot. Here, the sweeping robot receives the motion ending event sent by the terminal device, and the sweeping robot may acquire the control rule corresponding to the motion ending event from the control rule base, where the control rule does not need a control parameter, so that the motion prohibiting area is withdrawn for the sweeping robot according to the acquired control rule.
The forbidden movement region is withdrawn specifically by closing the forbidden region function of the sweeping robot; or the virtual wall function of the sweeping robot is closed. When a motion inhibition area is set for the sweeping robot in a virtual wall mode, a motion end event of the terminal equipment can be sent to other internet of things equipment (such as an intelligent control socket), so that the internet of things equipment is controlled to cancel the virtual wall, and an internet of things platform receiving the motion end event can also cancel the virtual wall.
The control and adjustment of the sweeping robot are performed without any operation of a user, and when the user starts to move, the sweeping robot is set not to enter a movement area of the user, and after the user finishes moving, the sweeping robot is restored to be original shape, so that the aims of matching with the movement body-building state of the user and optimizing the body-building environment are fulfilled. It should be understood that the control rules of the sweeping robot herein are merely examples, and the present disclosure is not limited thereto.
According to an exemplary embodiment of the internet of things device, taking the internet of things device as an air conditioning system as an example, when the context awareness event is a motion start event, the obtaining a control rule corresponding to the motion start event may be: and setting temperature and/or wind power control rules for the air conditioning system based on the favorite temperature and the exercise intensity control parameters of the user. Here, the air conditioning system receives a movement start event transmitted from the terminal device, and the movement start event may carry a preference temperature and movement intensity control parameter of the user, thereby turning on the air conditioning system and setting a proper temperature and wind power after starting the movement. The air conditioning system can acquire the control rules corresponding to the movement starting event from the control rule library, and acquire the favorite temperature and the movement intensity control parameters of the user carried by the control rules in the movement starting event according to the control rules, so that the air conditioning system is opened and the temperature and the wind power after the movement is started are set according to the acquired control rules and the favorite temperature and the movement intensity control parameters of the user.
Setting the temperature and/or the wind power for the air conditioning system may specifically be setting the temperature T of the air conditioning system,And/or setting the wind power of the air conditioning system, wherein the air conditioning system is set to be weak wind power when m < = 3, the air conditioning system is set to be medium wind power when m < = 6, and the air conditioning system is set to be strong wind power when m < = 9; wherein t is the user preference temperature, and m is the exercise intensity.
When the context aware event is a motion intensity event, the obtaining of the control rule corresponding to the motion intensity event may be: and adjusting the temperature and/or wind power control rules for the air conditioning system based on the exercise intensity level control parameters corresponding to the exercise intensity events. Here, the air conditioning system receives the exercise intensity event (at least one of the low intensity exercise event, the medium intensity exercise event, the high intensity exercise event, and the extremely high intensity exercise event) sent by the terminal device, and the air conditioning system may acquire the control rule corresponding to the exercise intensity event from the control rule base, and acquire the corresponding exercise intensity level control parameter from the exercise intensity event according to the control rule, for example, the exercise intensity event is the medium intensity exercise event, and acquire the exercise intensity level corresponding thereto as the medium intensity exercise event. Thereby adjusting the temperature and/or wind power of the air conditioning system according to the acquired control rules and the exercise intensity level control parameters.
The temperature and/or the wind power of the air conditioning system can be adjusted specifically that the higher the exercise intensity level is, the proper temperature reduction and/or the proper wind power increase of the air conditioner are/is realized.
When the context aware event is a motion end event, the obtaining of the control rule corresponding to the motion end event may be: based on the user heart rate control parameters, temperature and/or wind power control rules are adjusted for the air conditioning system. Here, the air conditioning system receives a movement ending event sent by the terminal device, and the movement ending event may carry a user heart rate control parameter. The air conditioning system can acquire the control rules corresponding to the movement ending event from the control rule library, and acquire the control parameters carrying the heart rate of the user from the movement ending event according to the control rules, so that the temperature and/or wind power of the air conditioning system are adjusted according to the acquired control rules and the control parameters of the heart rate of the user.
The temperature and/or the wind power of the air conditioning system can be adjusted in such a way that the slower the heart rate of the user, the proper increase in temperature and/or the proper decrease in wind power of the air conditioner.
The control and adjustment of the air conditioning system can control and adjust the temperature and wind power of the air conditioning system when the user starts to exercise, during exercise and after the exercise is finished without any operation of the user, so as to achieve the purpose of matching with the exercise body-building state of the user and enabling the body-building environment to be more comfortable. It should be understood that the control rules of the air conditioning system herein are merely examples, and the present disclosure is not limited thereto.
According to an exemplary embodiment of the internet of things device, taking the internet of things device as an intelligent sound box as an example, when the context awareness event is a motion start event, the obtaining a control rule corresponding to the motion start event may be: and setting a control rule for playing music for the intelligent sound box. Here, the smart speaker receives a motion start event transmitted from the terminal device, thereby opening the smart speaker and playing music after the user starts the motion. The intelligent sound box can acquire the control rule corresponding to the motion start event from the control rule base, and the control rule does not need control parameters, so that the intelligent sound box is opened and music is set to play according to the acquired control rule, for example, the intelligent sound box is opened and the music which is exciting to people is played.
When the context aware event is a motion intensity event, the obtaining of the control rule corresponding to the motion intensity event may be: based on the motion intensity level control parameters corresponding to the motion intensity events, adjusting the control rule of the played music type for the intelligent sound box; and/or prompting a user to pay attention to a safe control rule based on the intelligent sound box when the control parameter of the exercise intensity level corresponding to the exercise intensity event is high. Here, the intelligent speaker may receive the motion intensity event (at least one of the low intensity motion event, the medium intensity motion event, the high intensity motion event, and the extremely high intensity motion event) sent by the terminal device, and obtain the control rule corresponding to the motion intensity event from the control rule base, and obtain the corresponding motion intensity level control parameter from the motion intensity event according to the control rule, for example, the motion intensity event is the high intensity motion event, and the corresponding motion intensity level is high. Therefore, the music type played by the intelligent sound box is adjusted according to the acquired control rule and the exercise intensity level control parameter, for example, the higher the exercise intensity level is, the more cheerful or the stronger the rhythm sense is, and/or the intelligent sound box prompts the user to pay attention to the safety control rule when the exercise intensity level control parameter corresponding to the exercise intensity event is high or extremely high, for example, the intelligent sound box can send a voice prompt of 'paying attention to safety and the current exercise is too violent' to the user.
When the context aware event is a motion end event, the obtaining of the control rule corresponding to the motion end event may be: and adjusting the control rule of the type of playing music for the intelligent sound box. Here, the intelligent sound box receives the motion ending event sent by the terminal device, and the intelligent sound box may acquire the control rule corresponding to the motion ending event from the control rule base, where the control rule does not need a control parameter, so as to adjust the type of playing music, for example, playing the soothing music according to the acquired control rule.
The intelligent sound box can be controlled and adjusted without any operation of a user, and the type of music playing, the voice playing and the like of the intelligent sound box can be controlled when the user starts to exercise, during exercise and after exercise is finished, so that the aim of matching with the exercise state of the user and optimizing the exercise environment is fulfilled. It should be understood that the control rules of the smart speakers herein are merely examples, and the present disclosure is not limited thereto.
The control rule may be a preset rule or a user-defined rule, and in addition, other similar control rules may be formulated for the sweeping robot, the air conditioning system and the intelligent sound box to cooperate with the user to exercise, for example, the control rule corresponding to the exercise end event may also be: and closing the intelligent sound box. Optionally, for the air conditioning system, the control rule corresponding to the motion end event may also be: the air conditioning system is shut down. Optionally, for the robot that sweeps floor, air conditioning system and intelligent audio amplifier, the control rule that the motion ends the event and corresponds can also be: restoring to the state before the movement starts.
Further, the internet of things equipment can further comprise an intelligent television, an intelligent refrigerator, an intelligent air purification system, an intelligent power strip, an intelligent kitchen and bathroom and the like, corresponding control rules can be formulated for the internet of things equipment to receive situation awareness events, and the state of the internet of things equipment is controlled and adjusted according to the situation awareness events so as to match with the motion state of a user.
As described above, according to the method for controlling the internet of things device at the internet of things device side according to the exemplary embodiment of the present disclosure, the internet of things device is controlled and adjusted according to the exercise state of the user to cooperate with the user for exercise, so that the exercise environment is more comfortable.
Fig. 5 is a block diagram illustrating a terminal device according to an exemplary embodiment. It should be understood that a terminal device according to an exemplary embodiment of the present disclosure may be implemented in hardware/software and/or a combination of hardware and software.
As shown in fig. 5, the terminal device 500 includes: a data acquisition module 510, an event generation module 520, and an internet of things control module 530. A data acquisition module 510 configured to acquire user data related to the behavior and status of a user; an event generation module 520 configured to generate context aware events reflecting a context in which the user is located based on the user data; the internet of things control module 530 is configured to send the generated context aware event to the internet of things device to control the internet of things device to adapt to the current context of the user.
According to an exemplary embodiment of the present disclosure, the terminal device 500 further includes: a motion recommendation module 540 configured to obtain a status situation of the user based on context-aware events related to the physical status of the user and the user's daily behavioral profile; and recommending the exercise types with different exercise intensities according to the obtained state conditions of the user.
Since the method for controlling the internet of things device shown in fig. 2 may be performed by the terminal device shown in fig. 5, and the data acquisition module 510, the event generation module 520, and the internet of things control module 530 may perform operations corresponding to step S210, step S220, and step S230 in fig. 2, respectively, and the motion recommendation module 540 may perform operations corresponding to step S240 and step S250 in fig. 2. Accordingly, reference may be made to the corresponding description of fig. 2 for any relevant details concerning the operations performed by the modules in fig. 5, which are not repeated here.
Fig. 6 is a block diagram illustrating an internet of things device according to an exemplary embodiment. It should be understood that the internet of things device according to the exemplary embodiments of this disclosure may be implemented in hardware/software and/or a combination of hardware and software.
As shown in fig. 6, the internet of things device 600 includes: a receiving module 610, a control rule obtaining module 620 and a control module 630. A receiving module 610, which may be configured to receive context aware events sent by the terminal device, wherein the context aware events reflect a context in which a user using the terminal device is located and are generated based on user data related to the behavior and state of the user; the control rule acquisition module 620 may be configured to acquire control rules corresponding to the received context aware event; and a control module 630, which may be configured to control the internet of things device according to the obtained control rule.
Since the method for controlling the internet of things device shown in fig. 4 may be performed by the internet of things device shown in fig. 6, and the receiving module 610, the control rule acquiring module 620 and the control module 630 may perform operations corresponding to step S410, step S420 and step S430 in fig. 4, respectively. Accordingly, reference may be made to the corresponding description of fig. 4 for any relevant details concerning the operations performed by the modules of fig. 6, which are not repeated here.
Fig. 7 shows a flowchart of a method for controlling an internet of things device in which a terminal device and the internet of things device participate together according to an exemplary embodiment.
First, in step S710, the terminal device acquires user data related to the behavior and state of the user. According to an embodiment of the present disclosure, the step of acquiring user data may further include: user daily behavioral profile is established based on the user data, wherein the user daily behavioral profile includes at least one of age, gender, average sleep time, recommended sleep time, average work time, average commute time, and favorites temperature of the user.
Next, in step S720, the terminal device generates a context aware event reflecting the context in which the user is located based on the user data. The step of generating context aware events based on user data according to embodiments of the present disclosure may comprise: generating context aware events related to a user's motion state based on the user data, wherein the context aware events related to the user's motion state include: at least one of a motion start event, a motion intensity event, and a motion end event. The step of generating context-aware events related to the state of motion of the user based on the user data comprises one of the following operations: detecting a user start motion based on the user data, generating a motion start event; generating a motion intensity event based on the user data during the motion, wherein the motion intensity event comprises at least one of a plurality of motion events (at least one of a low intensity motion event, a medium intensity motion event, a high intensity motion event, and a very high intensity motion event) having different motion intensity levels, wherein the motion intensity level of the motion intensity event is determined based on a correspondence of a user heart rate in the user data to the motion intensity level; a motion end event is generated based on the user data detecting a user end motion.
Next, in step S730, the terminal device transmits the generated context aware event to the internet of things device. The step of transmitting the generated context aware event to the internet of things device according to an embodiment of the present disclosure may include: and sending the generated context-aware event to an Internet of things platform, and forwarding the context-aware event to Internet of things equipment by the Internet of things platform.
Next, in step S740, the internet of things device receives the context aware event transmitted by the terminal device.
Next, in step S750, the internet of things device acquires a control rule corresponding to the received context aware event. The step of obtaining a control rule corresponding to a received context aware event according to an embodiment of the present disclosure may comprise one of: when the received situation awareness event is a motion start event, acquiring a control rule corresponding to the motion start event; when the received context aware event is a motion intensity event, obtaining a control rule corresponding to the motion intensity event, wherein the motion intensity event comprises at least one of a plurality of motion events having a plurality of motion intensity levels; and when the received situation awareness event is a movement ending event, acquiring a control rule corresponding to the movement ending event.
Then, in step S760, the internet of things device controls the internet of things device according to the acquired control rule. The step of controlling the internet of things device according to the acquired control rule according to the embodiment of the present disclosure may include: determining whether the control rule needs control parameters according to the acquired control rule; responding to the control rule requiring control parameters, acquiring corresponding control parameters from the situation awareness event, and controlling the state of the Internet of things equipment according to the acquired control rule and control parameters; and responding to the control rule without control parameters, and controlling the state of the Internet of things equipment according to the acquired control rule.
When the internet of things device is a sweeping robot, the acquiring the control rule corresponding to the motion start event may include: setting a control rule for prohibiting a motion area for the sweeping robot based on the area position control parameters; wherein the zone position control parameter is carried by a motion start event; wherein, based on the regional position control parameter, set up the control rule of forbidden movement region for the robot of sweeping floor includes: opening a forbidden zone function of the sweeping robot, and setting a forbidden movement zone for the sweeping robot based on zone position control parameters; or the virtual wall function of the sweeping robot is opened. Acquiring the control rule corresponding to the motion end event may include: and canceling the control rule of the forbidden movement region for the sweeping robot, wherein the control rule of the forbidden movement region for the sweeping robot comprises the following steps: closing the forbidden zone function of the sweeping robot; or the virtual wall function of the sweeping robot is closed.
When the internet of things device is an air conditioning system, the acquiring the control rule corresponding to the movement start event may include: setting temperature and/or wind power control rules for the air conditioning system based on the favorite temperature and the exercise intensity control parameters of the user; wherein, the favorite temperature and the exercise intensity control parameters of the user are carried by the exercise start event; wherein, based on the preference temperature and the exercise intensity control parameter of the user, the control rule for setting the temperature and/or the wind power for the air conditioning system comprises: taking the favorite temperature of a user as an initial temperature, the higher the level of the exercise intensity is, the more the temperature set for the air conditioning system is reduced on the basis of the initial temperature; and/or the higher the level of exercise intensity, the stronger the wind power set for the air conditioning system. Acquiring the control rule corresponding to the motion intensity event may include: and adjusting the temperature and/or wind power control rules for the air conditioning system based on the exercise intensity level control parameters corresponding to the exercise intensity events. Acquiring the control rule corresponding to the motion end event may include: based on the heart rate control parameters of the user, adjusting the temperature and/or wind power control rules for the air conditioning system; wherein the heart rate control parameters of the user are carried by the end of exercise event.
When the internet of things device is an intelligent sound box, the obtaining the control rule corresponding to the motion start event may include: and setting a control rule for playing music for the intelligent sound box. Acquiring the control rule corresponding to the motion intensity event may include: based on the motion intensity level control parameters corresponding to the motion intensity events, adjusting the control rule of the played music type for the intelligent sound box; and/or prompting a user to pay attention to a safe control rule based on the intelligent sound box when the control parameter of the exercise intensity level corresponding to the exercise intensity event is high. Acquiring the control rule corresponding to the motion end event may include: and adjusting the control rule of the type of playing music for the intelligent sound box.
According to the method for controlling the Internet of things equipment, the terminal equipment and the Internet of things equipment participate together, under the condition that a user does not need to do any operation, the Internet of things equipment is controlled and adjusted according to the body-building state of the user so as to be matched with the body-building of the user, and the body-building environment is more comfortable.
Further, the step of generating a context aware event reflecting the context in which the user is located based on the user data (step S720) may further comprise: context aware events related to the physical state of the user are generated based on the user data, wherein the context aware events related to the physical state of the user include at least one of sleep events, work events, stress events, and commute events.
Next, in step S770, the terminal device obtains the state situation of the user based on the context-aware events related to the physical state of the user and the user' S daily behavioral profile. The step of obtaining a status condition of the user from the context aware event and the user daily behavioral profile according to an embodiment of the present disclosure may include: determining sleeping conditions, working time conditions, pressure values and commute conditions of the user according to the context awareness events and the daily behavior data of the user; calculating a state value of the user based on the sleeping condition, the working time condition, the pressure value and the commute condition of the user; and obtaining the state condition of the user corresponding to the state value of the user according to the state value of the user.
Then, in step S780, the terminal apparatus recommends the motion types of different motion intensities according to the obtained state conditions of the user.
For any relevant details concerning the operation of the steps in fig. 7, reference is made to the description of the corresponding steps in fig. 2 and 4, and no further description is given here.
As described above, according to the method for controlling the internet of things device, in which the terminal device and the internet of things device participate together, the state of the user is also combined with fitness, and the fitness type is recommended to guide the user to perform scientific fitness exercise.
Fig. 8 illustrates a system for controlling an internet of things device including a terminal device and the internet of things device according to an exemplary embodiment.
As shown in fig. 8, a system 800 for controlling an internet of things device includes a terminal device 810 and an internet of things device 820, or may also include an internet of things platform. Since the method for controlling the internet of things device described in fig. 7 may be performed by the system 800 for controlling the internet of things device shown in fig. 8, and the terminal device 810 may be configured to perform steps S710-S730, S770, and S780 in fig. 7, and the internet of things device 820 may be configured to perform steps S740-S760 in fig. 7, any relevant details regarding the operations performed by the devices in fig. 8 may be referred to in the corresponding description regarding fig. 7, and will not be repeated herein.
Fig. 9 is a block diagram illustrating an electronic device 900 according to an exemplary embodiment of the present disclosure. The electronic device 900 may be a terminal device of an embodiment of the disclosure, or may be an internet of things device of an embodiment of the disclosure. Referring to fig. 9, an electronic device 900 may include at least one memory 910 having stored therein a set of computer-executable instructions that, when executed by the at least one processor, perform a method for controlling an internet of things device according to an embodiment of the present disclosure.
Here, the electronic device is not necessarily a single electronic device, but may be any device or an aggregate of circuits capable of executing the above-described instructions (or instruction set) singly or in combination. The electronic device may also be part of an integrated control system or system manager, or may be configured as a portable electronic device that interfaces with either locally or remotely (e.g., via wireless transmission).
In an electronic device, a processor may include a Central Processing Unit (CPU), a Graphics Processor (GPU), a programmable logic device, a special purpose processor system, a microcontroller, or a microprocessor. By way of example, and not limitation, processors may also include analog processors, digital processors, microprocessors, multi-core processors, processor arrays, network processors, and the like.
The processor may execute instructions or code stored in the memory, wherein the memory may also store data. The instructions and data may also be transmitted and received over a network via a network interface device, which may employ any known transmission protocol.
The memory may be integrated with the processor, for example, RAM or flash memory disposed within an integrated circuit microprocessor or the like. In addition, the memory may include a stand-alone device, such as an external disk drive, a storage array, or any other storage device usable by a database system. The memory and the processor may be operatively coupled or may communicate with each other, for example, through an I/O port, a network connection, etc., such that the processor is able to read files stored in the memory.
In addition, the electronic device may also include a video display (such as a liquid crystal display) and a user interaction interface (such as a keyboard, mouse, touch input device, etc.). All components of the electronic device may be connected to each other via a bus and/or a network.
According to an embodiment of the present disclosure, there may also be provided a computer-readable storage medium, in which a computer program is stored which, when executed, implements a method for controlling an internet of things device according to the present disclosure. Examples of the computer readable storage medium herein include: read-only memory (ROM), random-access programmable read-only memory (PROM), electrically erasable programmable read-only memory (EEPROM), random-access memory (RAM), dynamic random-access memory (DRAM), static random-access memory (SRAM), flash memory, nonvolatile memory, CD-ROM, CD-R, CD + R, CD-RW, CD+RW, DVD-ROM, DVD-R, DVD + R, DVD-RW, DVD+RW, DVD-RAM, BD-ROM, BD-R, BD-R LTH, BD-RE, blu-ray or optical disk storage, hard Disk Drives (HDD), solid State Disks (SSD), card-type memories (such as multimedia cards, secure Digital (SD) cards or ultra-fast digital (XD) cards), magnetic tapes, floppy disks, magneto-optical data storage devices, hard disks, solid state disks, and any other devices configured to store computer programs and any associated data, data files and data structures in a non-transitory manner and to provide the computer programs and any associated data, data files and data structures to a processor or computer to enable the processor or computer to execute the programs. The computer programs in the computer readable storage media described above can be run in an environment deployed in a computer device, such as a client, host, proxy device, server, etc., and further, in one example, the computer programs and any associated data, data files, and data structures are distributed across networked computer systems such that the computer programs and any associated data, data files, and data structures are stored, accessed, and executed in a distributed fashion by one or more processors or computers.
According to the method, the device, the system and the computer readable storage medium for controlling the Internet of things device, the state of the user is combined with the body building, the body building type is recommended, and the user is guided to perform scientific body building exercise; under the condition that the user does not need to do any operation, the Internet of things equipment is controlled and adjusted according to the body-building state of the user so as to be matched with the body-building of the user, and the body-building environment is more comfortable.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any adaptations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It is to be understood that the present disclosure is not limited to the precise arrangements and instrumentalities shown in the drawings, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (12)

1. A method for controlling an internet of things device, comprising:
acquiring user data related to the behavior and state of a user;
Generating context aware events reflecting the context in which the user is located based on the user data;
the generated context aware event is sent to the internet of things device to control the internet of things device to adapt to the current context of the user,
Wherein the step of generating a context aware event based on the user data comprises:
Generating context aware events related to a user's motion state based on the user data, wherein the context aware events related to the user's motion state include: at least one of a motion start event, a motion intensity event, and a motion end event,
Wherein the step of generating context-aware events related to the motion state of the user based on the user data comprises one of the following operations:
detecting a user start motion based on the user data, generating a motion start event;
Generating a motion intensity event based on the user data during the motion, wherein the motion intensity event comprises at least one of a plurality of motion events having different motion intensity levels, wherein the motion intensity level of the motion intensity event is determined based on a correspondence of a user heart rate in the user data to the motion intensity level;
a motion end event is generated based on the user data detecting a user end motion.
2. The method of claim 1, wherein the step of sending the generated context aware event to the internet of things device to control the internet of things device to adapt to the current context of the user comprises:
The generated context aware event is sent to an internet of things platform, wherein the internet of things platform is configured to forward the context aware event to an internet of things device,
The internet of things device is configured to control the internet of things device according to control rules corresponding to the received context aware event.
3. The method of claim 1, wherein the step of obtaining user data further comprises: user daily behavioral profile is established based on the user data,
The step of generating context aware events based on user data further comprises:
Context aware events related to the physical state of the user are generated based on the user data,
Wherein the method further comprises:
Acquiring the state condition of the user according to the situation awareness event related to the physical state of the user and the daily behavior data of the user;
and recommending the exercise types with different exercise intensities according to the obtained state conditions of the user.
4. A method according to claim 3,
Wherein the user daily behavioral profile includes at least one of age, gender, average sleep time, recommended sleep time, average work time, average commute time, and favorite temperature of the user,
Wherein the context-aware event related to the physical state of the user comprises at least one of a sleep event, a work event, a stress event, and a commute event;
The step of obtaining the state condition of the user according to the context awareness event and the daily behavior data of the user comprises the following steps:
determining sleeping conditions, working time conditions, pressure values and commute conditions of the user according to the context awareness events and the daily behavior data of the user;
Calculating a state value of the user based on the sleeping condition, the working time condition, the pressure value and the commute condition of the user;
And obtaining the state condition of the user corresponding to the state value of the user according to the state value of the user.
5. A terminal device, the device comprising:
A processor;
a memory storing a computer program which, when executed by a processor, implements the method of any one of claims 1 to 4.
6. A computer readable storage medium, wherein a computer program is stored thereon, which program, when executed, implements the method of any of claims 1 to 4.
7. A method for controlling an internet of things device, comprising:
Receiving a context aware event transmitted by the terminal device, wherein the context aware event reflects a context in which a user using the terminal device is located and is generated based on user data relating to a behavior and a state of the user;
Acquiring a control rule corresponding to the received context awareness event; and
The internet of things equipment is controlled according to the acquired control rules,
Wherein the context aware event comprises at least one of a motion start event, a motion intensity event, and a motion end event,
Wherein the step of obtaining a control rule corresponding to the received context aware event comprises one of:
when the received situation awareness event is a motion start event, acquiring a control rule corresponding to the motion start event;
When the received context aware event is a motion intensity event, obtaining a control rule corresponding to the motion intensity event, wherein the motion intensity event comprises at least one of a plurality of motion events having a plurality of motion intensity levels;
and when the received situation awareness event is a movement ending event, acquiring a control rule corresponding to the movement ending event.
8. The method of claim 7, wherein controlling the internet of things device according to the acquired control rule comprises:
determining whether the control rule needs control parameters according to the acquired control rule;
Responding to the control rule requiring control parameters, acquiring corresponding control parameters from the situation awareness event, and controlling the state of the Internet of things equipment according to the acquired control rule and control parameters;
And responding to the control rule without control parameters, and controlling the state of the Internet of things equipment according to the acquired control rule.
9. The method of claim 8, wherein,
When the internet of things device is a sweeping robot,
The acquiring of the control rule corresponding to the motion start event comprises: setting a control rule for prohibiting a motion area for the sweeping robot based on the area position control parameters;
wherein the zone position control parameter is carried by a motion start event;
the acquiring of the control rule corresponding to the movement ending event comprises: the control rule of the forbidden movement area is withdrawn for the sweeping robot;
And/or
When the internet of things device is an air conditioning system,
The acquiring of the control rule corresponding to the motion start event comprises: setting temperature and/or wind power control rules for the air conditioning system based on the favorite temperature and the exercise intensity control parameters of the user;
Wherein, the favorite temperature and the exercise intensity control parameters of the user are carried by the exercise start event;
The obtaining of the control rule corresponding to the exercise intensity event comprises: based on the control parameters of the exercise intensity level corresponding to the exercise intensity event, adjusting the temperature and/or wind power control rules for the air conditioning system;
the acquiring of the control rule corresponding to the movement ending event comprises: based on the heart rate control parameters of the user, adjusting the temperature and/or wind power control rules for the air conditioning system;
Wherein the heart rate control parameters of the user are carried by the end of exercise event;
And/or
When the internet of things equipment is an intelligent sound box,
The acquiring of the control rule corresponding to the motion start event comprises: setting a control rule for playing music for the intelligent sound box;
The obtaining of the control rule corresponding to the exercise intensity event comprises: based on the motion intensity level control parameters corresponding to the motion intensity events, adjusting the control rule of the played music type for the intelligent sound box; and/or prompting a user to pay attention to a safe control rule by the intelligent sound box when the control parameter of the exercise intensity level corresponding to the exercise intensity event is high;
the acquiring of the control rule corresponding to the movement ending event comprises: and adjusting the control rule of the type of playing music for the intelligent sound box.
10. An internet of things device, the device comprising:
A processor;
memory storing a computer program which, when executed by a processor, implements the method according to any of claims 7 to 9.
11. A computer readable storage medium, wherein a computer program is stored thereon, which program, when executed, implements the method of any of claims 7 to 9.
12. A system for controlling an internet of things device, comprising:
A terminal device configured to acquire user data related to a behavior and a state of a user; generating context aware events reflecting the context in which the user is located based on the user data; the generated context aware event is sent to the internet of things device,
Wherein the terminal device is further configured to:
Generating context aware events related to a user's motion state based on the user data, wherein the context aware events related to the user's motion state include: at least one of a motion start event, a motion intensity event, and a motion end event,
Wherein the terminal device is further configured to one of:
detecting a user start motion based on the user data, generating a motion start event;
Generating a motion intensity event based on the user data during the motion, wherein the motion intensity event comprises at least one of a plurality of motion events having different motion intensity levels, wherein the motion intensity level of the motion intensity event is determined based on a correspondence of a user heart rate in the user data to the motion intensity level;
Detecting a user ending movement based on the user data, generating a movement ending event;
The internet of things device is configured to receive the context awareness event sent by the terminal device, acquire the control rule corresponding to the received context awareness event, control the internet of things device according to the acquired control rule,
Wherein the received context aware event comprises at least one of a motion start event, a motion intensity event and a motion end event,
Wherein the internet of things device is further configured to one of:
when the received situation awareness event is a motion start event, acquiring a control rule corresponding to the motion start event;
When the received context aware event is a motion intensity event, obtaining a control rule corresponding to the motion intensity event, wherein the motion intensity event comprises at least one of a plurality of motion events having a plurality of motion intensity levels;
and when the received situation awareness event is a movement ending event, acquiring a control rule corresponding to the movement ending event.
CN202110947701.6A 2021-08-18 2021-08-18 Method, device and system for controlling Internet of things device based on context awareness Active CN113691603B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110947701.6A CN113691603B (en) 2021-08-18 2021-08-18 Method, device and system for controlling Internet of things device based on context awareness

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110947701.6A CN113691603B (en) 2021-08-18 2021-08-18 Method, device and system for controlling Internet of things device based on context awareness

Publications (2)

Publication Number Publication Date
CN113691603A CN113691603A (en) 2021-11-23
CN113691603B true CN113691603B (en) 2024-04-19

Family

ID=78580664

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110947701.6A Active CN113691603B (en) 2021-08-18 2021-08-18 Method, device and system for controlling Internet of things device based on context awareness

Country Status (1)

Country Link
CN (1) CN113691603B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103389710A (en) * 2013-07-22 2013-11-13 重庆邮电大学 Internet of Things environment control method and device based on context-aware
CN105843065A (en) * 2016-05-11 2016-08-10 南京邮电大学 Context awareness system based on wearable equipment, and control method
CN105892427A (en) * 2016-04-15 2016-08-24 谷振宇 Internet of Things intelligent control method and Internet of Things intelligent control system based on user perception
CN109870923A (en) * 2019-04-02 2019-06-11 浙江宝业建筑智能科技有限公司 A kind of intelligent home control system and method
CN109981617A (en) * 2019-03-12 2019-07-05 深圳市智物联网络有限公司 A kind of internet of things equipment monitoring method, system and electronic equipment and storage medium
CN110083738A (en) * 2019-03-20 2019-08-02 广东工业大学 A kind of music recommended method and terminal device based on vocal print and context aware

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10110677B2 (en) * 2014-05-06 2018-10-23 Avago Technologies General Ip (Singapore) Pte. Ltd. Context-aware decision making

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103389710A (en) * 2013-07-22 2013-11-13 重庆邮电大学 Internet of Things environment control method and device based on context-aware
CN105892427A (en) * 2016-04-15 2016-08-24 谷振宇 Internet of Things intelligent control method and Internet of Things intelligent control system based on user perception
CN105843065A (en) * 2016-05-11 2016-08-10 南京邮电大学 Context awareness system based on wearable equipment, and control method
CN109981617A (en) * 2019-03-12 2019-07-05 深圳市智物联网络有限公司 A kind of internet of things equipment monitoring method, system and electronic equipment and storage medium
CN110083738A (en) * 2019-03-20 2019-08-02 广东工业大学 A kind of music recommended method and terminal device based on vocal print and context aware
CN109870923A (en) * 2019-04-02 2019-06-11 浙江宝业建筑智能科技有限公司 A kind of intelligent home control system and method

Also Published As

Publication number Publication date
CN113691603A (en) 2021-11-23

Similar Documents

Publication Publication Date Title
JP6706293B2 (en) Information processing system, information processing server, information processing program, and information providing method
US11040169B2 (en) Method and apparatus for controlling temperature adjustment device
JP6592440B2 (en) Information processing system, information processing apparatus, information processing program, and information processing method
CN105935289B (en) Wearable electronic device and control method thereof
EP3203712B1 (en) Thermal control device and method
US20140085077A1 (en) Sedentary activity management method and apparatus using data from a data-capable band for managing health and wellness
KR101739912B1 (en) Remote health care method and remote health care system employing the same
CN107997767A (en) For identifying the method and its electronic equipment of User Activity
US20120326873A1 (en) Activity attainment method and apparatus for a wellness application using data from a data-capable band
KR102384756B1 (en) Activity Guide Information Providing Method and electronic device supporting the same
CN108604246A (en) A kind of method and device adjusting user emotion
KR102403213B1 (en) Deep learning sleep assistant system through ultradian rhythm optimization
EP3179381B1 (en) Information processing system, information processing server, information processing program, and information provision method
CN108348157A (en) Utilize the heart rate detection of multipurpose capacitive touch sensors
US9968293B1 (en) Detecting and estimating sleep stages
CN113691603B (en) Method, device and system for controlling Internet of things device based on context awareness
EP3444704B1 (en) System for adjusting an audio/visual device based on health and wellness data
CN116170479A (en) Mattress control method, mattress control equipment and mattress
CN115317279A (en) Intelligent control method for household oxygen cabin based on self health state of human body
KR102475793B1 (en) Medical data providing method and recording medium storing the Medical data providing method
KR102561602B1 (en) Control method of server for providing mediation platform for concierge service
CN114963554A (en) Control method, device and equipment for household appliance
CA3220941A1 (en) Coaching based on reproductive phases
CN117133395A (en) Model building and physiological data analysis method, device, medium and equipment
CN114738966A (en) Interconnection control method and device for air conditioner and intelligent sound box

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