Detailed Description
So that the manner in which the features and elements of the disclosed embodiments can be understood in detail, a more particular description of the disclosed embodiments, briefly summarized above, may be had by reference to the embodiments, some of which are illustrated in the appended drawings. In the following description of the technology, for purposes of explanation, numerous details are set forth in order to provide a thorough understanding of the disclosed embodiments. However, one or more embodiments may be practiced without these details. In other instances, well-known structures and devices may be shown in simplified form in order to simplify the drawing.
The terms "first," "second," and the like in the description and in the claims, and the above-described drawings of embodiments of the present disclosure, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It should be understood that the data so used may be interchanged under appropriate circumstances such that embodiments of the present disclosure described herein may be made. Furthermore, the terms "comprising" and "having," as well as any variations thereof, are intended to cover non-exclusive inclusions.
The term "plurality" means two or more unless otherwise specified.
In the embodiment of the present disclosure, the character "/" indicates that the preceding and following objects are in an or relationship. For example, A/B represents: a or B.
The term "and/or" is an associative relationship that describes objects, meaning that three relationships may exist. For example, a and/or B, represents: a or B, or A and B.
The term "correspond" may refer to an association or binding relationship, and a corresponds to B refers to an association or binding relationship between a and B.
Fig. 1 is a schematic diagram of a method for controlling an air conditioner according to an embodiment of the present disclosure, and in conjunction with fig. 1, the embodiment of the present disclosure provides a method for controlling an air conditioner, including:
and S11, the air conditioner obtains the information of the song played by the user and the environment information of the position of the user.
And S12, the air conditioner determines the emotional state of the user according to the song information and the environment information.
And S13, in the case that the emotional state of the user indicates that the user has bad emotion, the air conditioner determines a target control scheme of the air conditioner for adjusting the bad emotion, and controls the air conditioner to execute the target control scheme.
In the scheme, the air conditioner can obtain the information of the song played by the user through the associated music playing equipment. Here, the music playing device may be a sound box or a mobile device. The mobile device may include, for example, a cell phone, a smart home device, a wearable device, a smart mobile device, a virtual reality device, or the like, or any combination thereof, wherein the wearable device includes, for example: smart watches, smart bracelets, and the like. Specifically, the air conditioner may obtain information about a song being played by the user through a music playing APP (Application program) on its associated mobile phone. The music playing APP may include one or more of QQ music, cool dog music, internet cloud music, and the like. The track information may include the title of the song, the artist, the type of song, the tag of the song, and so on. Here, the song types may include lyrics, rock, rhythm, and the like. The song tags can be customized in advance according to the requirements of users. The air conditioner can obtain the environmental information of the position of the user through the associated server. Here, the server may be configured in an air conditioner, or may be a server configured in a cloud. The environmental information may include weather information, environmental parameter information, and the like. The weather information is weather information in weather forecast. Such as rain, snow, wind, frost, etc. The environmental parameter information may include an ambient temperature, an ambient humidity, an ultraviolet intensity, and the like. In this way, the track information being played by the user and the environment information of the position where the user is located can be acquired more accurately.
In the scheme, the emotion state of the user can be determined by combining the song information and the environment information. Here, the emotional state may include a benign state, a neutral state, and a bad state. In particular, the emotional state of the user may be determined in a variety of ways. In a first example, the emotional state of the user may be determined in conjunction with the track information and the weather information. In a second example, the emotional state of the user may be determined in conjunction with the track information and the ambient temperature. In a third example, the emotional state of the user may be determined in conjunction with the track information and the ambient humidity. In a fourth example, the emotional state of the user may be determined in conjunction with the track information and the ultraviolet intensity. In this way, the emotional state of the user can be accurately determined in a variety of ways.
In the scheme, when the emotional state of the user is determined to be a bad state, the user is determined to have bad emotion. According to the scheme, the current emotional state of the user can be accurately determined through the song information played by the user and the environment information of the position where the user is located, the target control scheme of the air conditioner capable of adjusting the bad emotion is determined under the condition that the user is in the bad emotion, the target control scheme is executed by controlling the air conditioner, the indoor environment where the user is located is adjusted, the emotion fluctuation of the user is effectively relieved, the adverse effect of the emotion fluctuation on the user is reduced, and the control scheme of the air conditioner capable of relieving the bad emotion of the user is provided for the user.
Fig. 2 is a schematic diagram of a method for determining an emotional state according to an embodiment of the present disclosure, and as shown in fig. 2, optionally, the environment information includes weather information, S12, and the air conditioner determines the emotional state of the user according to the track information and the environment information, including:
s21, the air conditioner determines emotion labels corresponding to the song information and the weather information;
and S22, the air conditioner determines the emotional state corresponding to the emotional tag as the emotional state of the user.
In the scheme, the air conditioner can determine the emotion labels corresponding to the song information and the weather information. Specifically, song tags in the song information may be extracted, and the song tags may be combined with the weather information to determine corresponding emotion tags. For example, if the song label is impaired and the weather information is a gust of rain, the corresponding emotion label is determined to be impaired by the gust of rain. And if the song label is quiet and the weather information is cloudy, determining that the corresponding emotion label is cloudy and quiet. And if the song label is sweet and the weather information is clear, determining that the corresponding emotion label is clear sweet. And if the song label is the wisdom and the weather information is the snow, determining that the corresponding emotion label is the snow wisdom. In this way, the emotion labels corresponding to the track information and the weather information are accurately determined. Further, the corresponding relation between the emotion labels and the emotion states can be prestored in the air conditioner by the user. In one example, if the emotional tag is a gusty rain impairment, the corresponding emotional state is determined to be a bad state. And if the emotion label is cloudy and quiet, determining that the corresponding emotion state is a neutral state. And if the emotion label is clear and sweet, determining that the corresponding emotional state is a benign state. And if the emotion label is the snow idea, determining that the corresponding emotion state is a neutral state. Further, after the corresponding relation between the emotion labels and the emotion states is prestored in the air conditioner, the air conditioner can match the emotion states of the users from the corresponding relation through the determined emotion labels. According to the scheme, the influence of outdoor weather conditions on the emotion of the user can be considered, and the emotion state of the user is accurately determined by combining the song information and the weather information which are played by the user.
FIG. 3 is a schematic diagram of another method for determining an emotional state provided by embodiments of the disclosure; as shown in fig. 3, optionally, the environment information includes an environment temperature, S12, and the determining, by the air conditioner, the emotional state of the user according to the track information and the environment information includes:
and S31, in the case that the environment temperature is not in the preset temperature range, the air conditioner determines the adverse level corresponding to the environment temperature.
And S32, the air conditioner determines the emotional state corresponding to the unfavorable grade and the song information as the emotional state of the user.
In the scheme, understandably, the ambient temperature exceeds the comfortable temperature range of the user, the ambient temperature can affect the emotional state of the user to a certain extent, and the user is easily disturbed when the ambient temperature is too high or too low. Therefore, the preset temperature range may be previously stored on the air conditioner. Here, the preset temperature range is a comfortable temperature range of the user. In one example, the preset temperature range may be 20 ℃ to 26 ℃. Further, when the ambient temperature is not within the preset temperature range, the requirement can be determined according to the emotion, and the corresponding relation between the ambient temperature and the adverse level is set. For example, when the ambient temperature is 17 ℃ to 20 ℃ or 27 ℃ to 30 ℃, the corresponding adverse rating is 1 grade, when the ambient temperature is 13 ℃ to 16 ℃ or 30 ℃ to 33 ℃, the corresponding adverse rating is 2 grade, when the ambient temperature is 9 ℃ to 12 ℃ or 31 ℃ to 34 ℃, the corresponding adverse rating is 3 grade, and so on. The lower/higher the ambient temperature, the higher the adverse level to which the ambient temperature corresponds, the greater the emotional impact on the user. Further, the emotional state corresponding to the adverse level and the song information can be more accurately determined according to the corresponding relationship between the adverse level, the song information and the emotional state which are pre-stored in the air conditioner.
Optionally, the environmental information includes an ambient humidity, S12, and the air conditioner determines an emotional state of the user according to the track information and the environmental information, including:
and under the condition that the ambient humidity is higher than the preset humidity, the air conditioner determines the adverse level corresponding to the ambient humidity. The air conditioner determines the emotional state corresponding to the adverse grade and the song information as the emotional state of the user.
In the scheme, understandably, when the environmental humidity exceeds the critical value of the comfortable humidity of the user, the environmental humidity can affect the emotional state of the user to a certain degree, and the user is easily disturbed due to overhigh environmental humidity. Therefore, the preset humidity may be previously stored on the air conditioner. Here, the preset humidity is a critical value of the comfort humidity of the user. In one example, the preset humidity may be 50%. Further, when the ambient humidity is higher than the preset humidity, the requirement can be determined according to the emotion, and the corresponding relation between the ambient humidity and the adverse level is set. For example, when the ambient humidity is 50% -60%, the corresponding adverse level is level 1, when the ambient humidity is 61% -71%, the corresponding adverse level is level 2, when the ambient humidity is 72% -82%, the corresponding adverse level is level 3, and so on. The higher the ambient humidity, the higher the adverse level to which the ambient humidity corresponds, the greater the emotional impact on the user. Further, the emotional state corresponding to the adverse level and the song information can be more accurately determined according to the corresponding relationship between the adverse level, the song information and the emotional state which are pre-stored in the air conditioner.
Fig. 4 is a schematic diagram of another method for determining an emotional state according to an embodiment of the present disclosure, and as shown in fig. 4, optionally, the environment information includes ultraviolet intensity, S12, and the air conditioner determines the emotional state of the user according to the track information and the environment information, including:
s41, determining the adverse grade corresponding to the ultraviolet intensity by the air conditioner under the condition that the ultraviolet intensity is higher than the preset intensity;
and S42, the air conditioner determines the emotional state corresponding to the unfavorable grade and the song information as the emotional state of the user.
In the scheme, understandably, when the ultraviolet intensity exceeds a certain intensity, the ultraviolet intensity can affect the emotional state of the user to a certain degree, and the user is easy to be irritated due to overhigh ultraviolet intensity. Therefore, the preset intensity may be previously stored on the air conditioner. The ultraviolet intensity here refers to the ultraviolet index. In one example, the preset intensity may be 6. Further, when the ultraviolet intensity is higher than the preset intensity, the requirement can be determined according to the emotion, and the corresponding relation between the ultraviolet intensity and the adverse level can be set. For example, when the ultraviolet intensity is 7, the corresponding adverse level is 1, when the ultraviolet intensity is 8, the corresponding adverse level is 2, when the ultraviolet intensity is 9, the corresponding adverse level is 3, and so on. The higher the ultraviolet intensity, the higher the adverse level to which the ultraviolet intensity corresponds, the greater the emotional impact on the user. Further, the emotional state corresponding to the adverse level and the song information can be more accurately determined according to the corresponding relationship between the adverse level, the song information and the emotional state which are pre-stored in the air conditioner.
Optionally, S13, the air conditioner determining a target control scheme for the air conditioner for adjusting the bad mood, comprising: the air conditioner obtains current weather information of the position of a user; and the air conditioner determines an operation mode or a parameter to be adjusted of the air conditioner for adjusting the bad emotion according to the current weather information.
In the scheme, under the condition that the user is determined to have bad emotion, the air conditioner can obtain the current environmental information of the position where the user is located through the associated server. Here, the location of the user may be a city in which the user is located or a region in which the user is located. Specifically, the position of the user can be preset according to the accuracy requirement, and the more accurate the position of the user is, the higher the accuracy of the obtained weather information is. It can be understood that different weather information may affect the user to different degrees, and thus, in determining that the user is in an adverse emotional state, a target control scheme of the air conditioner for adjusting an adverse emotion may be determined according to the current weather information. The target control scheme of the air conditioner comprises an operation mode of the air conditioner or a parameter to be adjusted of the air conditioner. Here, the operation mode of the air conditioner may include a cooling mode, a heating mode, a dehumidifying mode, a purifying mode, and the like. The parameter to be adjusted may include a set temperature, a set humidity, etc. In this way, the target control scheme for adjusting the air conditioner of the indoor environment where the user is located can be determined in combination with the influence of the weather conditions on the mood, so as to provide an accurate data base for adjusting the indoor environment where the user is located.
Optionally, the determining, by the air conditioner, an operation mode of the air conditioner for adjusting the bad emotion according to the current weather information includes: under the condition that the current weather information is rainy or foggy, the air conditioner determines that the operation mode of the air conditioner for adjusting the bad emotion is a dehumidification mode; and under the condition that the current weather information is in haze days or sand-dust days, the air conditioner determines that the running mode of the air conditioner for adjusting the bad emotion is a purification mode.
In the scheme, it can be understood that when the air conditioner determines that the current weather information is rainy or foggy, it is determined that the environment humidity where the user is located is relatively high, in order to adjust the environment humidity where the user with bad emotion is located, so as to relieve the bad emotion of the user, the dehumidification mode can be started to reduce the environment humidity where the user is located, so that the user is effectively helped to relieve the bad emotion through the mode of reducing the environment humidity, and the adverse effect of emotion fluctuation on the user is favorably reduced. When the air conditioner determines that the current weather information is in a haze day or a dust day, it is determined that the air quality caused by more dust in the environment where the user is located is poor, in order to adjust the air quality where the user with bad emotion is located, so as to relieve the bad emotion of the user, the indoor environment where the user is located can be purified by starting the purification mode, so that the user is effectively helped to relieve the bad emotion through the mode of starting the purification mode, and the adverse effect of emotion fluctuation on the user is favorably reduced.
Optionally, the determining, by the air conditioner, a parameter to be adjusted of the air conditioner for adjusting the bad emotion according to the current weather information includes: under the condition that the current weather information is snow or sleet, the air conditioner determines that the to-be-adjusted parameter of the air conditioner for adjusting the bad emotion is set temperature; and under the condition that the current weather information is sunny, the air conditioner determines the parameter to be adjusted of the air conditioner for adjusting the bad emotion to be set humidity.
In the present scheme, it can be understood that when the air conditioner determines that the current weather information is snow or frozen rainy, it is determined that the ambient temperature where the user is located is lower, and in order to adjust the ambient temperature where the user with bad emotion is located to alleviate the bad emotion of the user, the set temperature of the air conditioner may be increased by 2 ℃. Therefore, the method effectively helps the user to relieve the bad emotion by increasing the indoor temperature, and helps to reduce the adverse effect of emotional fluctuation on the user. When the air conditioner determines that the current weather information is sunny, it is determined that the temperature of the environment where the user is located is higher due to the irradiation of sunlight, in order to properly adjust the indoor temperature where the user with bad emotion is located to relieve the bad emotion of the user, the indoor environment where the user is located can be cooled by properly increasing the indoor humidity, so that the user is effectively helped to relieve the bad emotion through properly increasing the humidity set by the air conditioner, and the adverse effect of emotional fluctuation on the user is favorably reduced.
Fig. 5 is a schematic view of another method for controlling an air conditioner according to an embodiment of the present disclosure, and in conjunction with fig. 5, the embodiment of the present disclosure provides a method for controlling an air conditioner, including:
and S51, the air conditioner obtains the information of the song played by the user and the environment information of the position of the user.
And S52, the air conditioner determines the emotional state of the user according to the song information and the environment information.
And S53, in the case that the emotional state of the user indicates that the user has bad emotion, the air conditioner determines a target control scheme of the air conditioner for adjusting the bad emotion, and controls the air conditioner to execute the target control scheme.
S54, the air conditioner obtains the type of music being played by the user.
S55, the air conditioner controls the user to stop executing the target control scheme in a case where the type of music indicates that the user is in a benign mood or a neutral mood.
In this embodiment, the corresponding relationship between the music type and the emotional state may be pre-stored in the air conditioner, for example, if the music type is hip hop, the corresponding emotional state is benign. If the music type is lyric, the corresponding emotional state is bad emotion. If the music type is country, the corresponding emotional state is neutral. Further, after the air conditioner executes the target control scheme, the music type played by the user is obtained, and the emotional state of the user corresponding to the music type is determined, so that the air conditioner is stopped from being further adjusted under the condition that the emotional state of the user is recovered to benign emotion or neutral emotion, power resources are effectively saved, and the air conditioner is convenient to use.
In practical application, the air conditioner can acquire the song information being played by the user and the weather information of the position where the user is located through the music playing APP of the associated mobile phone. And according to the corresponding relation among the pre-stored song information, weather information and emotional states, matching the emotional states corresponding to the determined song information and weather information, and determining a target control scheme of the air conditioner suitable for the current weather by combining the weather information under the condition that the emotional states of the users show that the users have bad emotions, so that the bad emotions of the users are relieved by adjusting the indoor environment of the users, the adverse effects of emotional fluctuation on the users are reduced, and the control scheme of the air conditioner for relieving the bad emotions of the users is provided for the users.
The embodiment of the disclosure provides a device for controlling an air conditioner, which comprises an obtaining module, a determining module and a control module. The obtaining module is configured to obtain the information of the song played by the user and the environment information of the position where the user is; the determining module is configured to determine an emotional state of the user according to the track information and the environment information; the control module is configured to determine a target control scheme of the air conditioner for adjusting the bad emotion and control the air conditioner to execute the target control scheme in the case that the emotional state of the user indicates that the user has the bad emotion.
By adopting the device for controlling the air conditioner, the current emotional state of the user can be accurately determined through the song information played by the user and the environmental information of the position of the user, and the target control scheme of the air conditioner capable of adjusting the bad emotion is determined under the condition that the user is in the bad emotion, so that the emotional fluctuation of the user is relieved by adjusting the indoor environment where the user is located, the adverse effect of the emotional fluctuation on the user is reduced, and the control scheme of the air conditioner capable of relieving the bad emotion of the user is provided for the user.
Fig. 6 is a schematic diagram of an apparatus for controlling an air conditioner according to an embodiment of the present disclosure, and in conjunction with fig. 6, an apparatus for controlling an air conditioner according to an embodiment of the present disclosure includes a processor (processor)100 and a memory (memory) 101. Optionally, the apparatus may also include a Communication Interface (Communication Interface)102 and a bus 103. The processor 100, the communication interface 102, and the memory 101 may communicate with each other via a bus 103. The communication interface 102 may be used for information transfer. The processor 100 may call logic instructions in the memory 101 to perform the method for controlling the air conditioner of the above-described embodiment.
In addition, the logic instructions in the memory 101 may be implemented in the form of software functional units and stored in a computer readable storage medium when the logic instructions are sold or used as independent products.
The memory 101, which is a computer-readable storage medium, may be used for storing software programs, computer-executable programs, such as program instructions/modules corresponding to the methods in the embodiments of the present disclosure. The processor 100 executes functional applications and data processing, i.e., implements the method for controlling the air conditioner in the above-described embodiments, by executing program instructions/modules stored in the memory 101.
The memory 101 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal device, and the like. In addition, the memory 101 may include a high-speed random access memory, and may also include a nonvolatile memory.
The embodiment of the disclosure provides an air conditioner, which comprises the device for controlling the air conditioner.
Embodiments of the present disclosure provide a computer-readable storage medium storing computer-executable instructions configured to perform the above-described method for controlling an air conditioner.
The disclosed embodiments provide a computer program product comprising a computer program stored on a computer-readable storage medium, the computer program comprising program instructions that, when executed by a computer, cause the computer to perform the above-described method for controlling an air conditioner.
The computer-readable storage medium described above may be a transitory computer-readable storage medium or a non-transitory computer-readable storage medium.
The technical solution of the embodiments of the present disclosure may be embodied in the form of a software product, where the computer software product is stored in a storage medium and includes one or more instructions to enable a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method of the embodiments of the present disclosure. And the aforementioned storage medium may be a non-transitory storage medium comprising: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes, and may also be a transient storage medium.
The above description and drawings sufficiently illustrate embodiments of the disclosure to enable those skilled in the art to practice them. Other embodiments may incorporate structural, logical, electrical, process, and other changes. The examples merely typify possible variations. Individual components and functions are optional unless explicitly required, and the sequence of operations may vary. Portions and features of some embodiments may be included in or substituted for those of others. Furthermore, the words used in the specification are words of description only and are not intended to limit the claims. As used in the description of the embodiments and the claims, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. Similarly, the term "and/or" as used in this application is meant to encompass any and all possible combinations of one or more of the associated listed. Furthermore, the terms "comprises" and/or "comprising," when used in this application, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. Without further limitation, an element defined by the phrase "comprising an …" does not exclude the presence of other like elements in a process, method or apparatus that comprises the element. In this document, each embodiment may be described with emphasis on differences from other embodiments, and the same and similar parts between the respective embodiments may be referred to each other. For methods, products, etc. of the embodiment disclosures, reference may be made to the description of the method section for relevance if it corresponds to the method section of the embodiment disclosure.
Those of skill in the art would appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software may depend upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the disclosed embodiments. It can be clearly understood by the skilled person that, for convenience and brevity of description, the specific working processes of the system, the apparatus and the unit described above may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the embodiments disclosed herein, the disclosed methods, products (including but not limited to devices, apparatuses, etc.) may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units may be merely a logical division, and in actual implementation, there may be another division, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form. The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to implement the present embodiment. In addition, functional units in the embodiments of the present disclosure may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). In some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. In the description corresponding to the flowcharts and block diagrams in the figures, operations or steps corresponding to different blocks may also occur in different orders than disclosed in the description, and sometimes there is no specific order between the different operations or steps. For example, two sequential operations or steps may in fact be executed substantially concurrently, or they may sometimes be executed in the reverse order, depending upon the functionality involved. Each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented by special purpose hardware-based systems that perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.