Method for controlling air conditioner, and electronic device and computer-readable storage medium
Abstract
A method includes obtaining temperature data and humidity data of an air conditioner, inputting a mode of the air conditioner, a prediction type of the air conditioner, the temperature data, and the humidity data into a pre-trained prediction model, and controlling a startup or a shutdown of the air conditioner based on a predicted time output by the prediction model. The mode of the air conditioner includes at least one of a cooling mode or a heating mode, the prediction type of the air conditioner includes at least one of a startup-time prediction or a shutdown-time prediction, parameters of the prediction model include an indoor set temperature, an indoor set temperature threshold value, an indoor set humidity, and an indoor set humidity threshold value, and the predicted time includes at least one of a predicted startup time or a predicted shutdown time.
Claims
exact text as granted — not AI-modified1 .- 15 . (canceled)
16 . A method for controlling an air conditioner and implemented by a controller, comprising:
obtaining temperature data and humidity data of the air conditioner, the temperature data including an indoor temperature and an outdoor temperature, and the humidity data including an indoor humidity and an outdoor humidity; inputting a mode of the air conditioner, a prediction type of the air conditioner, the temperature data, and the humidity data into a pre-trained prediction model of the air conditioner, the mode of the air conditioner including at least one of a cooling mode or a heating mode, the prediction type of the air conditioner including at least one of a startup-time prediction or a shutdown-time prediction, and parameters of the prediction model including an indoor set temperature, an indoor set temperature threshold value, an indoor set humidity, and an indoor set humidity threshold value; and controlling a startup or a shutdown of the air conditioner based on a predicted time output by the prediction model, the predicted time including at least one of a predicted startup time or a predicted shutdown time.
17 . The method according to claim 16 , wherein obtaining the temperature data and the humidity data of the air conditioner includes:
obtaining a current time; and obtaining the temperature data and the humidity data in response to the current time reaching a preset determination time.
18 . The method according to claim 16 , further comprising:
determining, in response to the prediction type being the startup-time prediction, the predicted startup time using following formula:
Δ
t
open
=
c
1
·
(
T
in
-
T
set
-
T
comp
)
+
c
2
·
(
T
out
-
T
set
-
T
comp
)
+
c
3
·
(
RH
in
-
RH
set
-
RH
comp
)
+
c
4
(
RH
out
-
RH
set
-
RH
comp
)
;
wherein, □t open represents the predicted startup time, c 1 -c 4 represent preset coefficients for the startup-time prediction, T in represents the indoor temperature, RH in represents the indoor humidity, T out represents the outdoor temperature, RH out represents the outdoor humidity, T set represents the indoor set temperature, RH set represents the indoor set humidity, T comp represents the indoor set temperature threshold value, and RH comp represents the indoor set humidity threshold value.
19 . The method according to claim 16 , further comprising:
determining, in response to the prediction type being the shutdown-time prediction, the predicted shutdown time using following formula:
Δ
t
close
=
d
1
·
(
T
in
-
T
set
-
T
comp
)
+
d
2
·
(
T
out
-
T
set
-
T
comp
)
+
d
3
·
(
RH
in
-
RH
set
-
RH
comp
)
+
d
4
·
(
RH
out
-
RH
set
-
RH
comp
)
;
wherein, □t close represents the predicted shutdown time, d 1 -d 4 represent preset coefficients for the shutdown-time prediction, T in represents the indoor temperature, RH in represents the indoor humidity, T out represents the outdoor temperature, RH out represents the outdoor humidity, T set represents the indoor set temperature, RH set represents the indoor set humidity, T comp represents the indoor set temperature threshold value, and RH comp represents the indoor set humidity threshold value.
20 . The method according to claim 16 , further comprising, after the predicted time is output:
using, in response to the predicted time being greater than a preset upper limit value of a startup time or a shutdown time, the upper limit value as the predicted time.
21 . The method according to claim 16 , further comprising, after the predicted time is output:
using, in response to the predicted time is less than a lower limit value of a startup time or a shutdown time, the lower limit value as the predicted time.
22 . The method according to claim 16 , wherein controlling the startup or the shutdown of the air conditioner based on the predicted time includes:
obtaining a current time; determining a time difference between the current time and a preset business-open time or a preset close-of-business time; and controlling the air conditioner to be powered on in response to the time difference being smaller than or equal to the predicted startup time, or to be powered off in response to the time difference being smaller than or equal to the predicted shutdown time.
23 . The method according to claim 16 , wherein controlling the startup or the shutdown of the air conditioner based on the predicted time includes:
obtaining a current time; determining, after obtaining the predicted startup time, a time difference between the current time and a business-open time in real time; and controlling the air conditioner based on the time difference and the predicted time, including:
in response to the time difference being greater than the predicted startup time, continuing to wait; or
in response to the time difference being smaller than or equal to the predicted shutdown time, sending a startup instruction to the air conditioner in order that the air conditioner starts to operate.
24 . The method according to claim 16 , wherein controlling the startup or the shutdown of the air conditioner based on the predicted time includes:
obtaining a current time; calculating, after obtaining the predicted shutdown time, a time difference between the current time and the close-of-business time in real time; and controlling the air conditioner based on the time difference and the predicted time, including:
in response to the time difference being greater than the predicted shutdown time, continuing to wait; or
in response to the time difference being smaller than or equal to the predicted shutdown time, sending a shutdown instruction to the air conditioner in order that the air conditioner stops operating.
25 . The method according to claim 16 , further comprising, after controlling the startup or the shutdown of the air conditioner based on the predicted time:
determining a temperature-reaching time of the air conditioner; and adjusting the parameters of the prediction model based on the temperature-reaching time.
26 . The method according to claim 25 , wherein determining the temperature-reaching time of the air conditioner includes:
determining a startup time of the air conditioner in response to the prediction type of the air conditioner being the startup-time prediction; obtaining a current time in response to the indoor temperature being greater than or equal to a sum of the indoor set temperature and the indoor set temperature threshold value; and determining a difference value between the current time and the startup time as the temperature-reaching time.
27 . The method according to claim 25 , wherein determining the temperature-reaching time of the air conditioner includes:
determining a shutdown time of the air conditioner in response to the prediction type of the air conditioner being the shutdown-time prediction; obtaining a current time in response to the indoor temperature being less than or equal to a sum of the indoor set temperature and the indoor set temperature threshold value; and determining a difference value between the current time and the shutdown time as the temperature-reaching time.
28 . The method according to claim 25 , wherein adjusting the parameters of the prediction model based on the temperature-reaching time includes:
determining an absolute value of a difference value between the temperature-reaching time and the predicted startup time in response to the prediction type of the air conditioner being the startup-time prediction; and adjusting the parameters of the prediction model in response to the absolute value being greater than a preset error threshold value.
29 . The method according to claim 25 , wherein adjusting the parameters of the prediction model based on the temperature-reaching time includes:
determining an absolute value of a difference between the temperature-reaching time and the predicted shutdown time in response to the prediction type of the air conditioner being the shutdown-time prediction; and adjusting the parameters of the prediction model in response to the absolute value being greater than a preset error threshold value.
30 . The method according to claim 25 , wherein adjusting the parameters of the prediction model based on the temperature-reaching time includes:
obtaining historical temperature data and historical humidity data of the air conditioner within a preset time range; and adjusting the parameters of the prediction model further based on the historical temperature data and the historical humidity data.
31 . The method according to claim 16 , wherein the controller is arranged in the air conditioner or in a server in communication connection with the air conditioner.
32 . An electronic device comprising:
a processor; and a memory storing a computer-executable instruction that, when executed by the processor, causes the processor to:
obtain temperature data and humidity data of the air conditioner, the temperature data including an indoor temperature and an outdoor temperature, and the humidity data including an indoor humidity and an outdoor humidity;
input a mode of the air conditioner, a prediction type of the air conditioner, the temperature data, and the humidity data into a pre-trained prediction model of the air conditioner, the mode of the air conditioner including at least one of a cooling mode or a heating mode, the prediction type of the air conditioner including at least one of a startup-time prediction or a shutdown-time prediction, and parameters of the prediction model including an indoor set temperature, an indoor set temperature threshold value, an indoor set humidity, and an indoor set humidity threshold value; and
control a startup or a shutdown of the air conditioner based on a predicted time output by the prediction model, the predicted time including at least one of a predicted startup time or a predicted shutdown time.
33 . The electronic device according to claim 32 , wherein the instruction further causes the processor to:
obtain a current time; and obtain the temperature data and the humidity data in response to the current time reaching a preset determination time.
34 . The electronic device according to claim 32 , wherein the instruction further causes the processor to:
determine, in response to the prediction type being the startup-time prediction, the predicted startup time using following formula:
Δ
t
open
=
c
1
·
(
T
in
-
T
set
-
T
comp
)
+
c
2
·
(
T
out
-
T
set
-
T
comp
)
+
c
3
·
(
RH
in
-
RH
set
-
RH
comp
)
+
c
4
(
RH
out
-
RH
set
-
RH
comp
)
;
wherein, □t open represents the predicted startup time, c 1 -c 4 represent preset coefficients for the startup-time prediction, T in represents the indoor temperature, RH in represents the indoor humidity, T out represents the outdoor temperature, RH out represents the outdoor humidity, T set represents the indoor set temperature, RH set represents the indoor set humidity, T comp represents the indoor set temperature threshold value, and RH comp represents the indoor set humidity threshold value.
35 . A computer-readable storage medium storing a computer-executable instruction that, when invoked and executed by a processor, causes the processor to:
obtain temperature data and humidity data of the air conditioner, the temperature data including an indoor temperature and an outdoor temperature, and the humidity data including an indoor humidity and an outdoor humidity; input a mode of the air conditioner, a prediction type of the air conditioner, the temperature data, and the humidity data into a pre-trained prediction model of the air conditioner, the mode of the air conditioner including at least one of a cooling mode or a heating mode, the prediction type of the air conditioner including at least one of a startup-time prediction or a shutdown-time prediction, and parameters of the prediction model including an indoor set temperature, an indoor set temperature threshold value, an indoor set humidity, and an indoor set humidity threshold value; and control a startup or a shutdown of the air conditioner based on a predicted time output by the prediction model, the predicted time including at least one of a predicted startup time or a predicted shutdown time.Join the waitlist — get patent alerts
Track US2024288191A1 — get alerts on status changes and closely related new filings.
We store only your email — no account needed. See our privacy policy.