WO2022142471A1 - Method and apparatus for acquiring environmental temperature by mobile terminal, mobile terminal, and medium - Google Patents

Method and apparatus for acquiring environmental temperature by mobile terminal, mobile terminal, and medium Download PDF

Info

Publication number
WO2022142471A1
WO2022142471A1 PCT/CN2021/118088 CN2021118088W WO2022142471A1 WO 2022142471 A1 WO2022142471 A1 WO 2022142471A1 CN 2021118088 W CN2021118088 W CN 2021118088W WO 2022142471 A1 WO2022142471 A1 WO 2022142471A1
Authority
WO
WIPO (PCT)
Prior art keywords
mobile terminal
ambient temperature
temperature
preset
deep learning
Prior art date
Application number
PCT/CN2021/118088
Other languages
French (fr)
Chinese (zh)
Inventor
宋轩
陈达寅
张浩然
Original Assignee
南方科技大学
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 南方科技大学 filed Critical 南方科技大学
Publication of WO2022142471A1 publication Critical patent/WO2022142471A1/en

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01KMEASURING TEMPERATURE; MEASURING QUANTITY OF HEAT; THERMALLY-SENSITIVE ELEMENTS NOT OTHERWISE PROVIDED FOR
    • G01K11/00Measuring temperature based upon physical or chemical changes not covered by groups G01K3/00, G01K5/00, G01K7/00 or G01K9/00
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/21Design or setup of recognition systems or techniques; Extraction of features in feature space; Blind source separation
    • G06F18/214Generating training patterns; Bootstrap methods, e.g. bagging or boosting

Definitions

  • Embodiments of the present invention relate to the technical field of temperature detection, and in particular, to a method, an apparatus, a mobile terminal, and a medium for obtaining an ambient temperature by a mobile terminal.
  • Temperature is a physical quantity that measures the degree of hot and cold of an object. It plays an important role in regulating and controlling the survival, reproduction and many physiological processes in the body. In addition to these conventional requirements for temperature, there are also some people with temperature-sensitive diseases who need to strictly control the body temperature of their environment. Therefore, it is necessary to provide these special groups with an environment that can monitor the surrounding body temperature in real time to ensure their safety. In addition, the pursuit of temperature measurement by ordinary people is getting higher and higher, and they are no longer satisfied with the temperature information obtained from the weather forecast. For example, when people are indoors, especially when using refrigeration or heating equipment, the temperature Information may lose reference value. Therefore, it becomes necessary to know the temperature of the environment at any time.
  • thermometer APPs in the current mobile terminals, but they basically rely on the data crawled from the weather website. Most of them display the temperature value of the whole area, which is not much different from the results of the weather forecast. , which is of little significance for the required ambient temperature monitoring.
  • Embodiments of the present invention provide a method, device, mobile terminal, and medium for a mobile terminal to acquire ambient temperature, so as to more accurately measure the temperature in the environment where the user is located through the portable mobile terminal.
  • an embodiment of the present invention provides a method for a mobile terminal to obtain an ambient temperature, the method comprising:
  • the usage state and the base temperature are input into the trained deep learning model to predict the ambient temperature where the mobile terminal is located.
  • an embodiment of the present invention further provides an apparatus for acquiring an ambient temperature by a mobile terminal, the apparatus comprising:
  • a data acquisition module for acquiring the use state of the mobile terminal and the basic temperature measured by a temperature sensor provided in the mobile terminal
  • a temperature prediction module configured to input the use state and the basic temperature into the deep learning model after training, so as to predict the ambient temperature where the mobile terminal is located.
  • an embodiment of the present invention further provides a mobile terminal, where the mobile terminal includes:
  • processors one or more processors
  • memory for storing one or more programs
  • the one or more processors When the one or more programs are executed by the one or more processors, the one or more processors implement the method for obtaining an ambient temperature for a mobile terminal provided by any embodiment of the present invention.
  • an embodiment of the present invention further provides a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, implements the method for obtaining an ambient temperature by a mobile terminal provided by any embodiment of the present invention.
  • An embodiment of the present invention provides a method for a mobile terminal to obtain an ambient temperature.
  • the use state of the mobile terminal and the basic temperature measured by a temperature sensor set in the mobile terminal are obtained, and then the use state and the basic temperature are input into a trained model. Deep learning model to predict the ambient temperature where the mobile terminal is located.
  • the method for obtaining the ambient temperature of the mobile terminal provided by the embodiment of the present invention takes the obtained basic temperature as the benchmark, and considers the influence of the heating factor of the mobile terminal on the measurement result, so as to predict the ambient temperature where the mobile terminal is located, so as to realize
  • the portable mobile terminal is used to accurately measure the ambient temperature, so as to meet people's demand for measuring the ambient temperature at any time.
  • Embodiment 1 is a flowchart of a method for a mobile terminal to acquire an ambient temperature according to Embodiment 1 of the present invention
  • FIG. 2 is a flowchart of a method for a mobile terminal to acquire an ambient temperature according to Embodiment 2 of the present invention
  • FIG. 3 is a schematic structural diagram of an apparatus for obtaining an ambient temperature by a mobile terminal according to Embodiment 3 of the present invention.
  • FIG. 4 is a schematic structural diagram of a mobile terminal according to Embodiment 4 of the present invention.
  • FIG. 1 is a flowchart of a method for a mobile terminal to acquire an ambient temperature according to Embodiment 1 of the present invention.
  • This embodiment is applicable to the case where a mobile terminal is used to measure the ambient temperature, and the method may be executed by the apparatus for acquiring the ambient temperature by the mobile terminal provided in the embodiment of the present invention, and the apparatus may be implemented by hardware and/or software.
  • the implementation can generally be integrated in a mobile terminal, and the mobile terminal can be, but is not limited to, a mobile phone, a tablet computer, and a smart wearable device. As shown in Figure 1, it specifically includes the following steps:
  • the usage status of the mobile terminal may include various variables that may affect the readings of the temperature sensors set in the mobile terminal, such as whether the mobile terminal is being charged, the current power level of the mobile terminal, a central processing unit (Central Processing Unit, CPU)
  • the occupancy rate, memory occupancy rate, screen brightness, etc. can also be viewed from the direction of the software, such as whether the user is using the mobile terminal to make calls, play games, or watch videos. Depending on the direction, for example, whether the user is playing games while charging or watching videos with higher screen brightness, etc.
  • Which variables are specifically included in the usage status acquired in this embodiment can be determined according to the training situation of the subsequently used deep learning model.
  • the usage status includes one or a combination of at least two of the occupancy rate of the central processing unit of the mobile terminal, the screen activation status, sensor data, and battery information.
  • the sensor data may include proximity sensor data, etc.
  • the battery information may include battery health, power, voltage, whether it is being charged, and the like.
  • one or more temperature sensors are usually built-in, and the temperature sensor can be called by some applications in the mobile terminal and returns the temperature degree.
  • the temperature sensor is installed inside the mobile terminal, and when the mobile terminal is running, various hardware will be affected by the specific operating conditions and emit heat, so the temperature sensor is also usually used to monitor the temperature inside the mobile terminal to ensure that the mobile terminal The internal temperature can be maintained in a relatively safe range.
  • the temperature measured by the temperature sensor provided in the mobile terminal can be obtained as the basic temperature for analyzing the current ambient temperature, so as to finally determine the ambient temperature where the mobile terminal is located in combination with the influence of the use state of the mobile terminal on the temperature, that is, the mobile terminal
  • the ambient temperature where the user of the terminal is located is convenient for the user to know at any time.
  • the usage state and the basic temperature of the mobile terminal After the usage state and the basic temperature of the mobile terminal are acquired, the usage state and the basic temperature can be input into the trained deep learning model to predict the current ambient temperature of the mobile terminal.
  • the used deep learning model may be, but not limited to, a convolutional neural network, etc., which is not specifically limited in this embodiment.
  • the method provided in this embodiment can be used by an application program installed in the mobile terminal. When the user opens the corresponding application program, the use status and basic temperature of the mobile terminal can be obtained once according to a certain period (may be 5 seconds). And make a prediction about the ambient temperature.
  • the method further includes: based on Bluetooth broadcast crowdsourcing, according to the following steps: The reference usage status and reference ambient temperature broadcast by other surrounding mobile terminals are scanned in a preset period; the predicted ambient temperature is corrected according to the reference usage status and the reference ambient temperature.
  • the predicted ambient temperature can be corrected by receiving the reference ambient temperature measured by other mobile terminals in the same environment, and at the same time, the reference usage status of other mobile terminals can also be considered to determine the corresponding reference ambient temperature it's usable or not.
  • the reference usage states of other mobile terminals are also relatively saturated, the reference value of the corresponding reference ambient temperature may not be large, and if the reference usage states of other mobile terminal devices are relatively idle, then the corresponding reference ambient temperature It is relatively more accurate.
  • the reference ambient temperature can be used to correct the ambient temperature predicted by the mobile terminal.
  • the predicted ambient temperature can be corrected by the available reference ambient temperature or all the scanned reference ambient temperatures.
  • the specific correction process can be as follows: Take the average value of the predicted ambient temperature and all reference ambient temperatures used for correction, or give a certain weight to the predicted ambient temperature and all reference ambient temperatures used for correction, so that the corrected ambient temperature can be finally calculated. It trains a network, predicts a data reliability as the output of the network by analyzing the data sent by other mobile terminals around, and corrects the ambient temperature predicted by the mobile terminal according to the data reliability.
  • the acquisition of the reference usage status and reference ambient temperature of other mobile terminals can be realized based on Bluetooth broadcast crowdsourcing.
  • the mobile terminal can scan the Bluetooth broadcast packets sent by other surrounding mobile terminals according to a preset period (which can be 20 seconds). , when another mobile terminal enters the effective distance of the mobile terminal's Bluetooth broadcast, the corresponding Bluetooth broadcast packet can be obtained, which includes data such as reference use status and reference ambient temperature encoded into a digital sequence.
  • the mobile terminal can use the Bluetooth broadcast function of Bluetooth Low Energy (BLE) according to a certain period (may be 10 seconds), and send the latest calibration result and use status of the mobile terminal through Bluetooth. It is sent out in the form of broadcast packets for use by other mobile terminals.
  • BLE Bluetooth Low Energy
  • the use state of the mobile terminal and the basic temperature measured by the temperature sensor set in the mobile terminal are first obtained, and then the use state and the basic temperature are input into the deep learning model after training to predict Obtain the ambient temperature where the mobile terminal is located.
  • the ambient temperature of the mobile terminal is predicted, and the portable mobile terminal is used to accurately measure the ambient temperature to meet people's needs. The need to measure ambient temperature at any time.
  • FIG. 2 is a flowchart of a method for a mobile terminal to acquire an ambient temperature according to Embodiment 2 of the present invention.
  • the technical solution of this embodiment is further refined on the basis of the above technical solution, and optionally, a specific deep learning model training method is provided to ensure accurate prediction of the ambient temperature.
  • the method before inputting the usage state and the basic temperature into the deep learning model after training to predict the ambient temperature where the mobile terminal is located, the method further includes: acquiring training sample data, where each training sample data includes The preset basic temperature corresponding to the preset use state of the mobile terminal marked with the preset ambient temperature; the deep learning model is trained according to the training sample data to obtain the trained deep learning model.
  • the specific steps may include the following:
  • each training sample data includes a base temperature corresponding to a preset mobile terminal marked with a preset ambient temperature in a preset use state.
  • the basic temperature measured by the temperature sensor set in the mobile terminal is preset, so that each preset usage state marked with a preset ambient temperature and the corresponding basic temperature are used as training sample data.
  • the preset ambient temperature can be the temperature of a low-temperature air-conditioned room, a hot outdoor, a more comfortable indoor room, etc.
  • the preset use state can be using a mobile terminal to make calls, play games or watch videos, and play while charging The state collected during games or watching videos while charging.
  • acquiring training sample data includes: acquiring a preset basic temperature corresponding to a mobile terminal in a preset use state; receiving a preset ambient temperature uploaded by a real-time electronic thermometer; The corresponding basic temperature of the mobile terminal in the preset use state is marked. Specifically, after placing the preset mobile terminal in a certain environment, the corresponding basic temperature can first be obtained by measuring the temperature sensor set in the preset mobile terminal. At the same time, if necessary, some hardware parameters in the preset mobile terminal As a variable in the preset use state, it can be obtained through a built-in sensor or a built-in application programming interface (Application Programming Interface, API).
  • API Application Programming Interface
  • a real-time electronic thermometer can be placed at a preset distance from the preset mobile terminal. Values, CSV) in its storage medium, after which the most recently generated file can be uploaded at a preset time.
  • CSV centroid of the preset mobile terminal
  • the basic temperature corresponding to the preset mobile terminal in the preset use state can be matched with the preset ambient temperature according to the time stamp, and then each preset ambient temperature can be obtained.
  • the marked preset mobile terminal corresponds to the base temperature in the preset use state, so as to obtain training sample data for training.
  • the deep learning model can be trained by using the training sample data to obtain a trained deep learning model.
  • the training process of the deep learning model can be implemented on a computer, that is, the above-mentioned real-time electronic thermometer can upload the generated file to the computer, and the preset mobile terminal can also set or obtain the preset use state and the corresponding The basic temperature is uploaded to the computer, so that the model training process is realized through the computer, so as to improve the training performance.
  • the trained deep learning model can be deployed in the mobile terminal by the computer, so as to realize the acquisition of the ambient temperature by the mobile terminal at any time.
  • the method further includes: respectively determining each variable in the preset use state and the preset Set the correlation coefficient between ambient temperatures; filter the variables in the preset use state according to the correlation coefficient.
  • the technical solution provided by the embodiment of the present invention ensures the accurate prediction of the ambient temperature by providing a specific deep learning model training method.
  • the variables are screened, and then the deep learning model is constructed and trained using the filtered variables.
  • the difficulty of model construction and training is also reduced, and the training efficiency of the model is improved.
  • FIG. 3 is a schematic structural diagram of an apparatus for obtaining an ambient temperature by a mobile terminal according to Embodiment 3 of the present invention.
  • the apparatus may be implemented by hardware and/or software, and may generally be integrated in a mobile terminal.
  • the device includes:
  • the data acquisition module 31 is used for acquiring the use state of the mobile terminal and the basic temperature measured by the temperature sensor provided in the mobile terminal;
  • the temperature prediction module 32 is configured to input the usage state and the basic temperature into the deep learning model after training, so as to predict the ambient temperature where the mobile terminal is located.
  • the use state of the mobile terminal and the basic temperature measured by the temperature sensor set in the mobile terminal are first obtained, and then the use state and the basic temperature are input into the deep learning model after training to predict Obtain the ambient temperature where the mobile terminal is located.
  • the ambient temperature of the mobile terminal is predicted, and the portable mobile terminal is used to accurately measure the ambient temperature to meet people's needs. The need to measure ambient temperature at any time.
  • the device for acquiring the ambient temperature by the mobile terminal further includes:
  • the data scanning module is used to input the usage status and basic temperature into the deep learning model after training to predict the ambient temperature where the mobile terminal is located, based on Bluetooth broadcast crowdsourcing, and scan the broadcast of other mobile terminals around it according to a preset period.
  • the temperature correction module is used to correct the predicted ambient temperature according to the reference usage state and the reference ambient temperature.
  • the device for acquiring the ambient temperature by the mobile terminal further includes:
  • the sample acquisition module is used to acquire training sample data before inputting the usage state and the basic temperature into the trained deep learning model to predict the ambient temperature where the mobile terminal is located, and each training sample data includes a preset ambient temperature the corresponding basic temperature of the marked preset mobile terminal in the preset use state;
  • the model training module is used to train the deep learning model according to the training sample data to obtain the trained deep learning model.
  • the optional sample acquisition module includes:
  • a temperature acquisition unit configured to acquire the basic temperature corresponding to the preset mobile terminal in the preset use state
  • the temperature receiving unit is used to receive the preset ambient temperature uploaded by the real-time electronic thermometer
  • the data calibration unit is used to mark the preset basic temperature of the mobile terminal corresponding to the preset use state according to the time stamp according to the preset ambient temperature.
  • the device for acquiring the ambient temperature by the mobile terminal further includes:
  • the correlation coefficient determination module is used to respectively determine the correlation coefficient between each variable in the preset use state and the preset ambient temperature before training the deep learning model according to the training sample data to obtain the trained deep learning model ;
  • variable screening module is used to screen the variables in the preset usage state according to the correlation coefficient.
  • the correlation coefficient is a Pearson correlation coefficient.
  • the use state includes one or a combination of at least two of the occupancy rate of the central processing unit of the mobile terminal, the screen activation state, sensor data, and battery information.
  • the apparatus for obtaining an ambient temperature by a mobile terminal provided by the embodiment of the present invention can execute the method for obtaining an ambient temperature by a mobile terminal provided in any embodiment of the present invention, and has functional modules and beneficial effects corresponding to the execution method.
  • the included units and modules are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be realized, that is, Yes; in addition, the specific names of the functional units are only for the convenience of distinguishing from each other, and are not used to limit the protection scope of the present invention.
  • FIG. 4 is a schematic structural diagram of a mobile terminal according to Embodiment 4 of the present invention, and shows a block diagram of an exemplary mobile terminal suitable for implementing the embodiments of the present invention.
  • the mobile terminal shown in FIG. 4 is only an example, and should not impose any limitations on the functions and scope of use of the embodiments of the present invention.
  • the mobile terminal includes a processor 41, a memory 42, an input device 43 and an output device 44; the number of processors 41 in the mobile terminal may be one or more, and one processor 41 is taken as an example in FIG. 4 , the processor 41 , the memory 42 , the input device 43 and the output device 44 in the mobile terminal may be connected by a bus or in other ways, and the connection by a bus is taken as an example in FIG. 4 .
  • the memory 42 can be used to store software programs, computer-executable programs and modules, such as program instructions/modules corresponding to the method for acquiring the ambient temperature by the mobile terminal in the embodiment of the present invention (for example, the mobile terminal acquires the The data acquisition module 31 and the temperature prediction module 32 in the device of ambient temperature).
  • the processor 41 executes various functional applications and data processing of the mobile terminal by running the software programs, instructions and modules stored in the memory 42, that is, the above-mentioned method for obtaining the ambient temperature of the mobile terminal is implemented.
  • the memory 42 may mainly include a stored program area and a stored data area, wherein the stored program area may store an operating system, an application program required for at least one function; the stored data area may store data created according to the use of the mobile terminal, and the like. Additionally, memory 42 may include high speed random access memory, and may also include nonvolatile memory, such as at least one magnetic disk storage device, flash memory device, or other nonvolatile solid state storage device. In some instances, the memory 42 may further include memory located remotely from the processor 41, and these remote memories may be connected to the mobile terminal through a network. Examples of such networks include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
  • the input device 43 can be used to acquire the basic temperature measured by the temperature sensor, and generate key signal input related to user setting and function control of the mobile terminal, and the like.
  • the output device 44 includes a display screen and other devices, which can be used to display the final predicted ambient temperature and the like to the user.
  • Embodiment 5 of the present invention further provides a storage medium containing computer-executable instructions, where the computer-executable instructions, when executed by a computer processor, are used to execute a method for a mobile terminal to acquire an ambient temperature, and the method includes:
  • the use state and base temperature are input into the trained deep learning model to predict the ambient temperature where the mobile terminal is located.
  • the storage medium may be any of various types of memory devices or storage devices.
  • the term "storage medium” is intended to include: installation media such as CD-ROM, floppy disk or tape devices; computer system memory or random access memory such as DRAM, DDR RAM, SRAM, EDO RAM, Rambus RAM, etc.; non-volatile memory such as flash memory, magnetic media (eg, hard disk or optical storage); registers or other similar types of memory elements, and the like.
  • the storage medium may also include other types of memory or combinations thereof.
  • the storage medium may be located in the computer system in which the program is executed, or may be located in a different second computer system connected to the computer system through a network such as the Internet.
  • the second computer system may provide program instructions to the computer for execution.
  • storage medium may include two or more storage media that may reside in different locations (eg, in different computer systems connected by a network).
  • the storage medium may store program instructions (eg, embodied as a computer program) executable by one or more processors.
  • a storage medium containing computer-executable instructions provided by the embodiments of the present invention is not limited to the above-mentioned method operations, and can also execute the mobile terminal provided by any embodiment of the present invention to obtain the ambient temperature related operations in the method.
  • a computer-readable signal medium may include a propagated data signal in baseband or as part of a carrier wave, with computer-readable program code embodied thereon. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing.
  • a computer-readable signal medium can also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device .
  • Program code embodied on a computer readable medium may be transmitted using any suitable medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
  • the present invention can be realized by software and necessary general-purpose hardware, and of course can also be realized by hardware, but in many cases the former is a better embodiment .
  • the technical solutions of the present invention can be embodied in the form of software products in essence or the parts that make contributions to the prior art, and the computer software products can be stored in a computer-readable storage medium, such as a floppy disk of a computer , Read-Only Memory (ROM), Random Access Memory (RAM), flash memory (FLASH), hard disk or CD, etc., including several instructions to make a mobile terminal (which can be a mobile phone, A tablet computer, or a smart wearable device, etc.) executes the methods described in the various embodiments of the present invention.
  • a mobile terminal which can be a mobile phone, A tablet computer, or a smart wearable device, etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Artificial Intelligence (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Evolutionary Biology (AREA)
  • Evolutionary Computation (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • General Engineering & Computer Science (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Telephone Function (AREA)

Abstract

A method for acquiring environmental temperature by a mobile terminal, comprising: acquiring a usage state of a mobile terminal and basic temperature measured by a temperature sensor provided in the mobile terminal (S11); and inputting the usage state and the basic temperature into a trained deep learning model so as to predict the temperature of the environment where the mobile terminal is located (S12). By taking the acquired basic temperature as a reference and considering the effect of the heating factor of the mobile terminal on the measurement result, the temperature of the environment where the mobile terminal is located is predicted, so that environmental temperature can be accurately measured using a portable mobile terminal. Also disclosed are an apparatus for acquiring environmental temperature, a mobile terminal, and medium.

Description

移动终端获取环境温度的方法、装置、移动终端及介质Method, device, mobile terminal and medium for obtaining ambient temperature by mobile terminal 技术领域technical field
本发明实施例涉及温度检测技术领域,尤其涉及一种移动终端获取环境温度的方法、装置、移动终端及介质。Embodiments of the present invention relate to the technical field of temperature detection, and in particular, to a method, an apparatus, a mobile terminal, and a medium for obtaining an ambient temperature by a mobile terminal.
背景技术Background technique
温度是一种衡量物体冷热程度的物理量,它对于生物的生存、繁衍以及体内的许多生理过程都有着重要的调节和把控作用。除了这些对温度的常规要求外,还存在一部分患有温度敏感性疾病的人需要对所处环境的体感温度进行更严格的把控。所以需要为这些特殊人群提供一个可以实时监控周边体感温度的环境,以保证其安全。另外,普通人对于温度测量的追求也越来越高,已不能满足于从天气预报中获知的气温信息,如当人们处于室内,尤其是在使用制冷或制暖设备的情况下,则该气温信息可能会失去参考价值。因此,能够随时获知所处环境的温度变得很有必要。Temperature is a physical quantity that measures the degree of hot and cold of an object. It plays an important role in regulating and controlling the survival, reproduction and many physiological processes in the body. In addition to these conventional requirements for temperature, there are also some people with temperature-sensitive diseases who need to strictly control the body temperature of their environment. Therefore, it is necessary to provide these special groups with an environment that can monitor the surrounding body temperature in real time to ensure their safety. In addition, the pursuit of temperature measurement by ordinary people is getting higher and higher, and they are no longer satisfied with the temperature information obtained from the weather forecast. For example, when people are indoors, especially when using refrigeration or heating equipment, the temperature Information may lose reference value. Therefore, it becomes necessary to know the temperature of the environment at any time.
目前的一种解决方式是随身携带温度检测装置,但是其携带非常不便,而且也有遗忘的风险。另一方面,当前的移动终端中也存在一些温度计APP,但是基本都是依靠从气象网站中爬取的数据,其显示的大多是整体地区的气温值,与天气预报的结果并无太大差别,对于所需的环境温度监测来说意义不大。A current solution is to carry the temperature detection device with you, but it is very inconvenient to carry and there is a risk of forgetting. On the other hand, there are also some thermometer APPs in the current mobile terminals, but they basically rely on the data crawled from the weather website. Most of them display the temperature value of the whole area, which is not much different from the results of the weather forecast. , which is of little significance for the required ambient temperature monitoring.
技术问题technical problem
本发明实施例提供一种移动终端获取环境温度的方法、装置、移动终端及介质,以通过便携的移动终端更加准确的测量用户所处环境中的温度。Embodiments of the present invention provide a method, device, mobile terminal, and medium for a mobile terminal to acquire ambient temperature, so as to more accurately measure the temperature in the environment where the user is located through the portable mobile terminal.
技术解决方案technical solutions
第一方面,本发明实施例提供了一种移动终端获取环境温度的方法,该方法包括:In a first aspect, an embodiment of the present invention provides a method for a mobile terminal to obtain an ambient temperature, the method comprising:
获取移动终端的使用状态和所述移动终端内设置的温度传感器测量得到的基础温度;Obtain the use state of the mobile terminal and the basic temperature measured by the temperature sensor provided in the mobile terminal;
将所述使用状态和所述基础温度输入训练后的深度学习模型,以对所述移动终端所处的环境温度进行预测。The usage state and the base temperature are input into the trained deep learning model to predict the ambient temperature where the mobile terminal is located.
第二方面,本发明实施例还提供了一种移动终端获取环境温度的装置,该装置包括:In a second aspect, an embodiment of the present invention further provides an apparatus for acquiring an ambient temperature by a mobile terminal, the apparatus comprising:
数据获取模块,用于获取移动终端的使用状态和所述移动终端内设置的温度传感器测量得到的基础温度;a data acquisition module for acquiring the use state of the mobile terminal and the basic temperature measured by a temperature sensor provided in the mobile terminal;
温度预测模块,用于将所述使用状态和所述基础温度输入训练后的深度学习模型,以对所述移动终端所处的环境温度进行预测。A temperature prediction module, configured to input the use state and the basic temperature into the deep learning model after training, so as to predict the ambient temperature where the mobile terminal is located.
第三方面,本发明实施例还提供了一种移动终端,该移动终端包括:In a third aspect, an embodiment of the present invention further provides a mobile terminal, where the mobile terminal includes:
一个或多个处理器;one or more processors;
存储器,用于存储一个或多个程序;memory for storing one or more programs;
当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现本发明任意实施例所提供的移动终端获取环境温度的方法。When the one or more programs are executed by the one or more processors, the one or more processors implement the method for obtaining an ambient temperature for a mobile terminal provided by any embodiment of the present invention.
第四方面,本发明实施例还提供了一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现本发明任意实施例所提供的移动终端获取环境温度的方法。In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, implements the method for obtaining an ambient temperature by a mobile terminal provided by any embodiment of the present invention.
有益效果beneficial effect
本发明实施例提供了一种移动终端获取环境温度的方法,首先获取移动终端的使用状态和移动终端内设置的温度传感器测量得到的基础温度,再将该使用状态和该基础温度输入训练后的深度学习模型,以预测得到移动终端所处的环境温度。本发明实施例所提供的移动终端获取环境温度的方法,通过以获取的基础温度为基准,考虑移动终端自身发热因素对测量的结果产生的影响,对移动终端所处的环境温度进行预测,实现了利用便携的移动终端准确的测量环境温度,以满足人们对环境温度随时测量的需求。An embodiment of the present invention provides a method for a mobile terminal to obtain an ambient temperature. First, the use state of the mobile terminal and the basic temperature measured by a temperature sensor set in the mobile terminal are obtained, and then the use state and the basic temperature are input into a trained model. Deep learning model to predict the ambient temperature where the mobile terminal is located. The method for obtaining the ambient temperature of the mobile terminal provided by the embodiment of the present invention takes the obtained basic temperature as the benchmark, and considers the influence of the heating factor of the mobile terminal on the measurement result, so as to predict the ambient temperature where the mobile terminal is located, so as to realize The portable mobile terminal is used to accurately measure the ambient temperature, so as to meet people's demand for measuring the ambient temperature at any time.
附图说明Description of drawings
图1为本发明实施例一提供的移动终端获取环境温度的方法的流程图;1 is a flowchart of a method for a mobile terminal to acquire an ambient temperature according to Embodiment 1 of the present invention;
图2为本发明实施例二提供的移动终端获取环境温度的方法的流程图;2 is a flowchart of a method for a mobile terminal to acquire an ambient temperature according to Embodiment 2 of the present invention;
图3为本发明实施例三提供的移动终端获取环境温度的装置的结构示意图;3 is a schematic structural diagram of an apparatus for obtaining an ambient temperature by a mobile terminal according to Embodiment 3 of the present invention;
图4为本发明实施例四提供的移动终端的结构示意图。FIG. 4 is a schematic structural diagram of a mobile terminal according to Embodiment 4 of the present invention.
本发明的实施方式Embodiments of the present invention
下面结合附图和实施例对本发明作进一步的详细说明。可以理解的是,此处所描述的具体实施例仅仅用于解释本发明,而非对本发明的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与本发明相关的部分而非全部结构。The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention, but not to limit the present invention. In addition, it should be noted that, for the convenience of description, the drawings only show some but not all structures related to the present invention.
在更加详细地讨论示例性实施例之前应当提到的是,一些示例性实施例被描述成作为流程图描绘的处理或方法。虽然流程图将各步骤描述成顺序的处理,但是其中的许多步骤可以被并行地、并发地或者同时实施。此外,各步骤的顺序可以被重新安排。当其操作完成时所述处理可以被终止,但是还可以具有未包括在附图中的附加步骤。所述处理可以对应于方法、函数、规程、子例程、子程序等等。Before discussing the exemplary embodiments in greater detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although the flowchart depicts the steps as a sequential process, many of the steps may be performed in parallel, concurrently, or concurrently. Furthermore, the order of the steps can be rearranged. The process may be terminated when its operation is complete, but may also have additional steps not included in the figures. The processes may correspond to methods, functions, procedures, subroutines, subroutines, and the like.
实施例一Example 1
图1为本发明实施例一提供的移动终端获取环境温度的方法的流程图。本实施例可适用于利用移动终端对周围环境温度进行测量的情况,该方法可以由本发明实施例所提供的移动终端获取环境温度的装置来执行,该装置可以由硬件和/或软件的方式来实现,一般可集成于移动终端中,该移动终端可以但不限于是手机、平板电脑以及智能穿戴设备等。如图1所示,具体包括如下步骤:FIG. 1 is a flowchart of a method for a mobile terminal to acquire an ambient temperature according to Embodiment 1 of the present invention. This embodiment is applicable to the case where a mobile terminal is used to measure the ambient temperature, and the method may be executed by the apparatus for acquiring the ambient temperature by the mobile terminal provided in the embodiment of the present invention, and the apparatus may be implemented by hardware and/or software. The implementation can generally be integrated in a mobile terminal, and the mobile terminal can be, but is not limited to, a mobile phone, a tablet computer, and a smart wearable device. As shown in Figure 1, it specifically includes the following steps:
S11、获取移动终端的使用状态和移动终端内设置的温度传感器测量得到的基础温度。S11. Acquire a usage state of the mobile terminal and a basic temperature measured by a temperature sensor set in the mobile terminal.
其中,移动终端的使用状态可以包括各种可能影响移动终端内设置的温度传感器的读数的各种变量,例如移动终端是否正在充电、移动终端的当前电量、中央处理器(Central Processing Unit,CPU)的占用率、内存的占用率以及屏幕亮度等等,同时也可以从软件的方向来看,例如用户是否正在使用移动终端进行打电话、玩游戏或者看视频等行为,还可以从结合软硬件的方向来看,例如用户是否在充电的状态下玩游戏或者以较高的屏幕亮度看视频等等。在本实施例中获取的使用状态具体包括哪些变量可以根据后续使用的深度学习模型的训练情况进行确定。可选的,使用状态包括移动终端的中央处理器的占用率、屏幕激活状态、传感器数据以及电池信息中的一种或至少两种的组合。其中,传感器数据可以包括近距离传感器数据等等,电池信息可以包括电池健康状况、电量、电压以及是否正在充电等等。The usage status of the mobile terminal may include various variables that may affect the readings of the temperature sensors set in the mobile terminal, such as whether the mobile terminal is being charged, the current power level of the mobile terminal, a central processing unit (Central Processing Unit, CPU) The occupancy rate, memory occupancy rate, screen brightness, etc., can also be viewed from the direction of the software, such as whether the user is using the mobile terminal to make calls, play games, or watch videos. Depending on the direction, for example, whether the user is playing games while charging or watching videos with higher screen brightness, etc. Which variables are specifically included in the usage status acquired in this embodiment can be determined according to the training situation of the subsequently used deep learning model. Optionally, the usage status includes one or a combination of at least two of the occupancy rate of the central processing unit of the mobile terminal, the screen activation status, sensor data, and battery information. The sensor data may include proximity sensor data, etc., and the battery information may include battery health, power, voltage, whether it is being charged, and the like.
在移动终端中,通常会自带一个或多个温度传感器,该温度传感器可以被移动终端内的某些应用程序调用,并返回温度度数。但由于温度传感器安装于移动终端内部,而移动终端在运行时,各种硬件会受到具体运行情况影响而散发热量,所以该温度传感器也通常被应用于监控移动终端内部的温度,以保证移动终端内部的温度可以维持在一个相对安全的范围。因此,可以获取移动终端内设置的温度传感器测量得到的温度作为分析当前环境温度的基础温度,以便于结合移动终端的使用状态对温度的影响最终确定移动终端所处的环境温度,也即该移动终端的用户所处的环境温度,从而便于用户随时获知。In a mobile terminal, one or more temperature sensors are usually built-in, and the temperature sensor can be called by some applications in the mobile terminal and returns the temperature degree. However, since the temperature sensor is installed inside the mobile terminal, and when the mobile terminal is running, various hardware will be affected by the specific operating conditions and emit heat, so the temperature sensor is also usually used to monitor the temperature inside the mobile terminal to ensure that the mobile terminal The internal temperature can be maintained in a relatively safe range. Therefore, the temperature measured by the temperature sensor provided in the mobile terminal can be obtained as the basic temperature for analyzing the current ambient temperature, so as to finally determine the ambient temperature where the mobile terminal is located in combination with the influence of the use state of the mobile terminal on the temperature, that is, the mobile terminal The ambient temperature where the user of the terminal is located is convenient for the user to know at any time.
S12、将使用状态和基础温度输入训练后的深度学习模型,以对移动终端所处的环境温度进行预测。S12. Input the usage state and the basic temperature into the deep learning model after training, so as to predict the ambient temperature where the mobile terminal is located.
在获取到移动终端的使用状态以及基础温度之后,即可将该使用状态和基础温度输入训练后的深度学习模型,以预测得到移动终端当前所处的环境温度。其中,所使用的深度学习模型可以但不限于是卷积神经网络等,对此本实施例不作具体的限制。本实施例所提供的方法,可以通过移动终端内安装的应用程序来使用,当用户打开对应的应用程序时,可以按照一定周期(可以是5秒)获取一次移动终端的使用状态和基础温度,并对环境温度进行一次预测。After the usage state and the basic temperature of the mobile terminal are acquired, the usage state and the basic temperature can be input into the trained deep learning model to predict the current ambient temperature of the mobile terminal. The used deep learning model may be, but not limited to, a convolutional neural network, etc., which is not specifically limited in this embodiment. The method provided in this embodiment can be used by an application program installed in the mobile terminal. When the user opens the corresponding application program, the use status and basic temperature of the mobile terminal can be obtained once according to a certain period (may be 5 seconds). And make a prediction about the ambient temperature.
在上述技术方案的基础上,可选的,在将使用状态和基础温度输入训练后的深度学习模型,以对移动终端所处的环境温度进行预测之后,还包括:基于蓝牙广播众包,按照预设周期扫描周围其他移动终端广播的参考使用状态和参考环境温度;根据参考使用状态和参考环境温度对预测的环境温度进行校正。On the basis of the above technical solution, optionally, after inputting the use state and the basic temperature into the deep learning model after training to predict the ambient temperature where the mobile terminal is located, the method further includes: based on Bluetooth broadcast crowdsourcing, according to the following steps: The reference usage status and reference ambient temperature broadcast by other surrounding mobile terminals are scanned in a preset period; the predicted ambient temperature is corrected according to the reference usage status and the reference ambient temperature.
具体的,若移动终端的使用状态比较饱和,如长时间保持较高的CPU占用等情况,则会导致移动终端的温度过高,从而对环境温度的测量结果影响较大。在这种情况下,可以通过接收相同环境中其他移动终端测量得到的参考环境温度来对自身预测的环境温度进行校正,同时,还可以考虑其他移动终端的参考使用状态来确定对应的参考环境温度是否可用。示例性的,如果其他移动终端的参考使用状态同样比较饱和,则其对应的参考环境温度的参考价值可能不大,而如果其他移动终端设备的参考使用状态比较空闲,则其对应的参考环境温度则相对更加准确,此时即可使用该参考环境温度对本移动终端预测的环境温度进行校正。同样的,在本移动终端处于任意使用状态下预测得到的环境温度,均可以通过可用的参考环境温度来进行校正,也可以通过所扫描到的所有参考环境温度来进行校正,具体校正过程可以是取预测的环境温度与所有用于校正的参考环境温度的平均值,或者为预测的环境温度和所有用于校正的参考环境温度赋予一定的权重,从而最终计算得到校正后的环境温度,还可以是训练一个网络,通过分析周围其他移动终端传过来的数据预测得到一个数据可信度作为该网络的输出,并根据该数据可信度对本移动终端预测的环境温度进行校正等等。Specifically, if the usage state of the mobile terminal is relatively saturated, such as maintaining a high CPU usage for a long time, the temperature of the mobile terminal will be too high, thereby greatly affecting the measurement result of the ambient temperature. In this case, the predicted ambient temperature can be corrected by receiving the reference ambient temperature measured by other mobile terminals in the same environment, and at the same time, the reference usage status of other mobile terminals can also be considered to determine the corresponding reference ambient temperature it's usable or not. Exemplarily, if the reference usage states of other mobile terminals are also relatively saturated, the reference value of the corresponding reference ambient temperature may not be large, and if the reference usage states of other mobile terminal devices are relatively idle, then the corresponding reference ambient temperature It is relatively more accurate. At this time, the reference ambient temperature can be used to correct the ambient temperature predicted by the mobile terminal. Similarly, when the mobile terminal is in any state of use, the predicted ambient temperature can be corrected by the available reference ambient temperature or all the scanned reference ambient temperatures. The specific correction process can be as follows: Take the average value of the predicted ambient temperature and all reference ambient temperatures used for correction, or give a certain weight to the predicted ambient temperature and all reference ambient temperatures used for correction, so that the corrected ambient temperature can be finally calculated. It trains a network, predicts a data reliability as the output of the network by analyzing the data sent by other mobile terminals around, and corrects the ambient temperature predicted by the mobile terminal according to the data reliability.
针对其他移动终端的参考使用状态和参考环境温度的获取,则可以基于蓝牙广播众包来实现,本移动终端可以按照预设周期(可以是20秒)扫描一次周围其他移动终端发出的蓝牙广播包,当存在其他移动终端进入本移动终端蓝牙广播的有效距离时,即可获取到对应的蓝牙广播包,其中即包括被编码成数字序列的参考使用状态和参考环境温度等数据。相对应的,本移动终端可以按照一定周期(可以是10秒)通过低功耗蓝牙(Bluetooth Low Energy,BLE)自带的蓝牙广播功能,将本移动终端最近一次的校正结果以及使用状态通过蓝牙广播包的形式发送出来,以供其他移动终端使用。The acquisition of the reference usage status and reference ambient temperature of other mobile terminals can be realized based on Bluetooth broadcast crowdsourcing. The mobile terminal can scan the Bluetooth broadcast packets sent by other surrounding mobile terminals according to a preset period (which can be 20 seconds). , when another mobile terminal enters the effective distance of the mobile terminal's Bluetooth broadcast, the corresponding Bluetooth broadcast packet can be obtained, which includes data such as reference use status and reference ambient temperature encoded into a digital sequence. Correspondingly, the mobile terminal can use the Bluetooth broadcast function of Bluetooth Low Energy (BLE) according to a certain period (may be 10 seconds), and send the latest calibration result and use status of the mobile terminal through Bluetooth. It is sent out in the form of broadcast packets for use by other mobile terminals.
本发明实施例所提供的技术方案,首先获取移动终端的使用状态和移动终端内设置的温度传感器测量得到的基础温度,再将该使用状态和该基础温度输入训练后的深度学习模型,以预测得到移动终端所处的环境温度。通过以获取的基础温度为基准,考虑移动终端自身发热因素对测量的结果产生的影响,对移动终端所处的环境温度进行预测,实现了利用便携的移动终端准确的测量环境温度,以满足人们对环境温度随时测量的需求。In the technical solution provided by the embodiment of the present invention, the use state of the mobile terminal and the basic temperature measured by the temperature sensor set in the mobile terminal are first obtained, and then the use state and the basic temperature are input into the deep learning model after training to predict Obtain the ambient temperature where the mobile terminal is located. By taking the acquired basic temperature as the benchmark and considering the influence of the mobile terminal's own heating factor on the measurement results, the ambient temperature of the mobile terminal is predicted, and the portable mobile terminal is used to accurately measure the ambient temperature to meet people's needs. The need to measure ambient temperature at any time.
实施例二Embodiment 2
图2为本发明实施例二提供的移动终端获取环境温度的方法的流程图。本实施例的技术方案在上述技术方案的基础上进一步细化,可选的,提供一种具体的深度学习模型训练方法,以保证对环境温度的准确预测。具体的,本实施例中,在将使用状态和基础温度输入训练后的深度学习模型,以对移动终端所处的环境温度进行预测之前,还包括:获取训练样本数据,每个训练样本数据包括以预设环境温度标记的预设移动终端在预设使用状态下对应的基础温度;根据训练样本数据对深度学习模型进行训练,以获得训练后的深度学习模型。相应的,如图2所示,具体可以包括如下步骤:FIG. 2 is a flowchart of a method for a mobile terminal to acquire an ambient temperature according to Embodiment 2 of the present invention. The technical solution of this embodiment is further refined on the basis of the above technical solution, and optionally, a specific deep learning model training method is provided to ensure accurate prediction of the ambient temperature. Specifically, in this embodiment, before inputting the usage state and the basic temperature into the deep learning model after training to predict the ambient temperature where the mobile terminal is located, the method further includes: acquiring training sample data, where each training sample data includes The preset basic temperature corresponding to the preset use state of the mobile terminal marked with the preset ambient temperature; the deep learning model is trained according to the training sample data to obtain the trained deep learning model. Correspondingly, as shown in Figure 2, the specific steps may include the following:
S21、获取训练样本数据,每个训练样本数据包括以预设环境温度标记的预设移动终端在预设使用状态下对应的基础温度。S21. Acquire training sample data, where each training sample data includes a base temperature corresponding to a preset mobile terminal marked with a preset ambient temperature in a preset use state.
具体的,可以设置一系列不同的预设环境温度以及预设移动终端不同的预设使用状态,并在不同的预设环境温度下使用不同的预设使用状态进行实验,分别获取每种情况下预设移动终端内设置的温度传感器测得的基础温度,从而将各个以预设环境温度标记的预设使用状态以及对应的基础温度作为训练样本数据。其中,预设环境温度可以分别是低温的空调间、炎热的室外以及较舒适的室内等的温度,预设使用状态可以是利用移动终端进行打电话、玩游戏或看视频,以及边充电边玩游戏或边充电边看视频等等情况下采集的状态。Specifically, it is possible to set a series of different preset ambient temperatures and preset different preset usage states of the mobile terminal, and perform experiments using different preset usage states under different preset ambient temperatures, and obtain the respective conditions for each case. The basic temperature measured by the temperature sensor set in the mobile terminal is preset, so that each preset usage state marked with a preset ambient temperature and the corresponding basic temperature are used as training sample data. The preset ambient temperature can be the temperature of a low-temperature air-conditioned room, a hot outdoor, a more comfortable indoor room, etc., and the preset use state can be using a mobile terminal to make calls, play games or watch videos, and play while charging The state collected during games or watching videos while charging.
可选的,获取训练样本数据,包括:获取预设移动终端在预设使用状态下对应的基础温度;接收实时电子温度计上传的预设环境温度;根据预设环境温度,按照时间戳对预设移动终端在预设使用状态下对应的基础温度进行标记。具体的,在将预设移动终端置于某种环境中之后,首先可以通过预设移动终端内设置的温度传感器测量得到对应的基础温度,同时,若需要将预设移动终端内的一些硬件参数作为预设使用状态中的变量,则可以通过内置的传感器或自带的应用程序接口(Application Programming Interface,API)进行获取。然后针对预设环境温度,可以在与预设移动终端相距预设距离的位置静置一个实时电子温度计,该电子温度计可以记录每个时间戳的气温,并可以逗号分隔值文件格式(Comma-Separated Values,CSV)保存在其存储介质中,之后可以在预设时间上传最近生成的文件。在接收到实时电子温度计上传的预设环境温度后,可以将预设移动终端在预设使用状态下对应的基础温度与预设环境温度按照时间戳进行匹配,则可以得到各个以预设环境温度标记的预设移动终端在预设使用状态下对应的基础温度,从而获得用于训练的训练样本数据。Optionally, acquiring training sample data includes: acquiring a preset basic temperature corresponding to a mobile terminal in a preset use state; receiving a preset ambient temperature uploaded by a real-time electronic thermometer; The corresponding basic temperature of the mobile terminal in the preset use state is marked. Specifically, after placing the preset mobile terminal in a certain environment, the corresponding basic temperature can first be obtained by measuring the temperature sensor set in the preset mobile terminal. At the same time, if necessary, some hardware parameters in the preset mobile terminal As a variable in the preset use state, it can be obtained through a built-in sensor or a built-in application programming interface (Application Programming Interface, API). Then for the preset ambient temperature, a real-time electronic thermometer can be placed at a preset distance from the preset mobile terminal. Values, CSV) in its storage medium, after which the most recently generated file can be uploaded at a preset time. After receiving the preset ambient temperature uploaded by the real-time electronic thermometer, the basic temperature corresponding to the preset mobile terminal in the preset use state can be matched with the preset ambient temperature according to the time stamp, and then each preset ambient temperature can be obtained. The marked preset mobile terminal corresponds to the base temperature in the preset use state, so as to obtain training sample data for training.
S22、根据训练样本数据对深度学习模型进行训练,以获得训练后的深度学习模型。S22. Train the deep learning model according to the training sample data to obtain a trained deep learning model.
在获取到训练样本数据之后,即可使用训练样本数据对深度学习模型进行训练,以得到训练后的深度学习模型。具体的,对深度学习模型的训练过程可以在计算机上实现,即上述的实时电子温度计可以将生成的文件上传至计算机,预设移动终端也可以将设定或获取的预设使用状态和对应的基础温度上传至计算机,从而通过计算机实现模型训练的过程,以提高训练的性能。相应的,在通过计算机完成模型的训练之后,可以通过计算机将训练后的深度学习模型部署到移动终端中,以实现移动终端随时对环境温度的获取。After the training sample data is obtained, the deep learning model can be trained by using the training sample data to obtain a trained deep learning model. Specifically, the training process of the deep learning model can be implemented on a computer, that is, the above-mentioned real-time electronic thermometer can upload the generated file to the computer, and the preset mobile terminal can also set or obtain the preset use state and the corresponding The basic temperature is uploaded to the computer, so that the model training process is realized through the computer, so as to improve the training performance. Correspondingly, after the training of the model is completed by the computer, the trained deep learning model can be deployed in the mobile terminal by the computer, so as to realize the acquisition of the ambient temperature by the mobile terminal at any time.
S23、获取移动终端的使用状态和移动终端内设置的温度传感器测量得到的基础温度。S23. Acquire the use state of the mobile terminal and the basic temperature measured by the temperature sensor set in the mobile terminal.
S24、将使用状态和基础温度输入训练后的深度学习模型,以对移动终端所处的环境温度进行预测。S24. Input the usage state and the basic temperature into the deep learning model after training, so as to predict the ambient temperature where the mobile terminal is located.
在上述技术方案的基础上,可选的,在根据训练样本数据对深度学习模型进行训练,以获得训练后的深度学习模型之前,还包括:分别确定预设使用状态中的每种变量与预设环境温度之间的相关系数;根据相关系数对预设使用状态中的变量进行筛选。On the basis of the above technical solution, optionally, before the deep learning model is trained according to the training sample data to obtain the trained deep learning model, the method further includes: respectively determining each variable in the preset use state and the preset Set the correlation coefficient between ambient temperatures; filter the variables in the preset use state according to the correlation coefficient.
具体的,首先可以尽可能多的获取预设移动终端中可能影响环境温度测量的各种变量,但是由于其中可能存在一部分变量与温度的关系并不密切,同时过多的变量也会导致模型搭建过程以及模型训练过程的难度增加,使得训练效果变差,在基于蓝牙广播众包进行校正时,也会影响到利用蓝牙广播发送信息的过程。因此,权衡其中的利弊,可以在训练之前,通过每种变量与预设环境温度之间的相关系数对变量进行一次筛选,并利用筛选后的变量构建深度学习模型并对其进行训练。其中,可选的,相关系数为皮尔森相关系数,皮尔森相关系数也称为皮尔森积矩相关系数,是一种线性相关系数,用来反映两个变量之间的线性相关程度,其值介于-1到1之间,越靠近1表明越趋于正相关,越靠近-1表明越趋于负相关。在计算出每个变量的相关系数之后,即可选取其中相关程度较高的变量,具体可以通过与预设相关程度进行比较来确定。Specifically, first of all, you can obtain as many variables as possible that may affect the measurement of ambient temperature in the preset mobile terminal, but because there may be some variables that are not closely related to temperature, and too many variables will also lead to model building. The difficulty of the process and the model training process increases, which makes the training effect worse. When correcting based on Bluetooth broadcast crowdsourcing, it will also affect the process of using Bluetooth broadcast to send information. Therefore, to weigh the pros and cons, you can screen the variables by the correlation coefficient between each variable and the preset ambient temperature before training, and use the filtered variables to build a deep learning model and train it. Among them, the optional correlation coefficient is the Pearson correlation coefficient. The Pearson correlation coefficient is also called the Pearson product moment correlation coefficient. It is a linear correlation coefficient and is used to reflect the degree of linear correlation between two variables. Its value Between -1 and 1, the closer to 1, the more positive correlation, and the closer to -1, the more negative correlation. After the correlation coefficient of each variable is calculated, a variable with a higher degree of correlation can be selected, which can be determined by comparing with a preset degree of correlation.
本发明实施例所提供的技术方案,通过提供一种具体的深度学习模型训练方法,保证了对环境温度的准确预测,同时,还可以首先根据相关系数对获取的预设使用状态中的各种变量进行筛选,进而利用筛选后的变量构建深度学习模型并对其训练,在保证模型的训练效果的基础上,还降低了模型构建及训练的难度,提高了模型的训练效率。The technical solution provided by the embodiment of the present invention ensures the accurate prediction of the ambient temperature by providing a specific deep learning model training method. The variables are screened, and then the deep learning model is constructed and trained using the filtered variables. On the basis of ensuring the training effect of the model, the difficulty of model construction and training is also reduced, and the training efficiency of the model is improved.
实施例三Embodiment 3
图3为本发明实施例三提供的移动终端获取环境温度的装置的结构示意图,该装置可以由硬件和/或软件的方式来实现,一般可集成于移动终端中。如图3所示,该装置包括:3 is a schematic structural diagram of an apparatus for obtaining an ambient temperature by a mobile terminal according to Embodiment 3 of the present invention. The apparatus may be implemented by hardware and/or software, and may generally be integrated in a mobile terminal. As shown in Figure 3, the device includes:
数据获取模块31,用于获取移动终端的使用状态和移动终端内设置的温度传感器测量得到的基础温度;The data acquisition module 31 is used for acquiring the use state of the mobile terminal and the basic temperature measured by the temperature sensor provided in the mobile terminal;
温度预测模块32,用于将使用状态和基础温度输入训练后的深度学习模型,以对移动终端所处的环境温度进行预测。The temperature prediction module 32 is configured to input the usage state and the basic temperature into the deep learning model after training, so as to predict the ambient temperature where the mobile terminal is located.
本发明实施例所提供的技术方案,首先获取移动终端的使用状态和移动终端内设置的温度传感器测量得到的基础温度,再将该使用状态和该基础温度输入训练后的深度学习模型,以预测得到移动终端所处的环境温度。通过以获取的基础温度为基准,考虑移动终端自身发热因素对测量的结果产生的影响,对移动终端所处的环境温度进行预测,实现了利用便携的移动终端准确的测量环境温度,以满足人们对环境温度随时测量的需求。In the technical solution provided by the embodiment of the present invention, the use state of the mobile terminal and the basic temperature measured by the temperature sensor set in the mobile terminal are first obtained, and then the use state and the basic temperature are input into the deep learning model after training to predict Obtain the ambient temperature where the mobile terminal is located. By taking the acquired basic temperature as the benchmark and considering the influence of the mobile terminal's own heating factor on the measurement results, the ambient temperature of the mobile terminal is predicted, and the portable mobile terminal is used to accurately measure the ambient temperature to meet people's needs. The need to measure ambient temperature at any time.
在上述技术方案的基础上,可选的,该移动终端获取环境温度的装置,还包括:On the basis of the above technical solution, optionally, the device for acquiring the ambient temperature by the mobile terminal further includes:
数据扫描模块,用于在将使用状态和基础温度输入训练后的深度学习模型,以对移动终端所处的环境温度进行预测之后,基于蓝牙广播众包,按照预设周期扫描周围其他移动终端广播的参考使用状态和参考环境温度;The data scanning module is used to input the usage status and basic temperature into the deep learning model after training to predict the ambient temperature where the mobile terminal is located, based on Bluetooth broadcast crowdsourcing, and scan the broadcast of other mobile terminals around it according to a preset period. The reference use state and the reference ambient temperature;
温度校正模块,用于根据参考使用状态和参考环境温度对预测的环境温度进行校正。The temperature correction module is used to correct the predicted ambient temperature according to the reference usage state and the reference ambient temperature.
在上述技术方案的基础上,可选的,该移动终端获取环境温度的装置,还包括:On the basis of the above technical solution, optionally, the device for acquiring the ambient temperature by the mobile terminal further includes:
样本获取模块,用于在将使用状态和基础温度输入训练后的深度学习模型,以对移动终端所处的环境温度进行预测之前,获取训练样本数据,每个训练样本数据包括以预设环境温度标记的预设移动终端在预设使用状态下对应的基础温度;The sample acquisition module is used to acquire training sample data before inputting the usage state and the basic temperature into the trained deep learning model to predict the ambient temperature where the mobile terminal is located, and each training sample data includes a preset ambient temperature the corresponding basic temperature of the marked preset mobile terminal in the preset use state;
模型训练模块,用于根据训练样本数据对深度学习模型进行训练,以获得训练后的深度学习模型。The model training module is used to train the deep learning model according to the training sample data to obtain the trained deep learning model.
在上述技术方案的基础上,可选的,样本获取模块,包括:On the basis of the above technical solutions, the optional sample acquisition module includes:
温度获取单元,用于获取预设移动终端在预设使用状态下对应的基础温度;a temperature acquisition unit, configured to acquire the basic temperature corresponding to the preset mobile terminal in the preset use state;
温度接收单元,用于接收实时电子温度计上传的预设环境温度;The temperature receiving unit is used to receive the preset ambient temperature uploaded by the real-time electronic thermometer;
数据标定单元,用于根据预设环境温度,按照时间戳对预设移动终端在预设使用状态下对应的基础温度进行标记。The data calibration unit is used to mark the preset basic temperature of the mobile terminal corresponding to the preset use state according to the time stamp according to the preset ambient temperature.
在上述技术方案的基础上,可选的,该移动终端获取环境温度的装置,还包括:On the basis of the above technical solution, optionally, the device for acquiring the ambient temperature by the mobile terminal further includes:
相关系数确定模块,用于在根据训练样本数据对深度学习模型进行训练,以获得训练后的深度学习模型之前,分别确定预设使用状态中的每种变量与预设环境温度之间的相关系数;The correlation coefficient determination module is used to respectively determine the correlation coefficient between each variable in the preset use state and the preset ambient temperature before training the deep learning model according to the training sample data to obtain the trained deep learning model ;
变量筛选模块,用于根据相关系数对预设使用状态中的变量进行筛选。The variable screening module is used to screen the variables in the preset usage state according to the correlation coefficient.
在上述技术方案的基础上,可选的,相关系数为皮尔森相关系数。On the basis of the above technical solution, optionally, the correlation coefficient is a Pearson correlation coefficient.
在上述技术方案的基础上,可选的,使用状态包括移动终端的中央处理器的占用率、屏幕激活状态、传感器数据以及电池信息中的一种或至少两种的组合。Based on the above technical solution, optionally, the use state includes one or a combination of at least two of the occupancy rate of the central processing unit of the mobile terminal, the screen activation state, sensor data, and battery information.
本发明实施例所提供的移动终端获取环境温度的装置可执行本发明任意实施例所提供的移动终端获取环境温度的方法,具备执行方法相应的功能模块和有益效果。The apparatus for obtaining an ambient temperature by a mobile terminal provided by the embodiment of the present invention can execute the method for obtaining an ambient temperature by a mobile terminal provided in any embodiment of the present invention, and has functional modules and beneficial effects corresponding to the execution method.
值得注意的是,在上述移动终端获取环境温度的装置的实施例中,所包括的各个单元和模块只是按照功能逻辑进行划分的,但并不局限于上述的划分,只要能够实现相应的功能即可;另外,各功能单元的具体名称也只是为了便于相互区分,并不用于限制本发明的保护范围。It is worth noting that, in the above-mentioned embodiment of the apparatus for obtaining the ambient temperature by the mobile terminal, the included units and modules are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be realized, that is, Yes; in addition, the specific names of the functional units are only for the convenience of distinguishing from each other, and are not used to limit the protection scope of the present invention.
实施例四Embodiment 4
图4为本发明实施例四提供的移动终端的结构示意图,示出了适于用来实现本发明实施方式的示例性移动终端的框图。图4显示的移动终端仅仅是一个示例,不应对本发明实施例的功能和使用范围带来任何限制。如图4所示,该移动终端包括处理器41、存储器42、输入装置43及输出装置44;移动终端中处理器41的数量可以是一个或多个,图4中以一个处理器41为例,移动终端中的处理器41、存储器42、输入装置43及输出装置44可以通过总线或其他方式连接,图4中以通过总线连接为例。FIG. 4 is a schematic structural diagram of a mobile terminal according to Embodiment 4 of the present invention, and shows a block diagram of an exemplary mobile terminal suitable for implementing the embodiments of the present invention. The mobile terminal shown in FIG. 4 is only an example, and should not impose any limitations on the functions and scope of use of the embodiments of the present invention. As shown in FIG. 4 , the mobile terminal includes a processor 41, a memory 42, an input device 43 and an output device 44; the number of processors 41 in the mobile terminal may be one or more, and one processor 41 is taken as an example in FIG. 4 , the processor 41 , the memory 42 , the input device 43 and the output device 44 in the mobile terminal may be connected by a bus or in other ways, and the connection by a bus is taken as an example in FIG. 4 .
存储器42作为一种计算机可读存储介质,可用于存储软件程序、计算机可执行程序以及模块,如本发明实施例中的移动终端获取环境温度的方法对应的程序指令/模块(例如,移动终端获取环境温度的装置中的数据获取模块31及温度预测模块32)。处理器41通过运行存储在存储器42中的软件程序、指令以及模块,从而执行移动终端的各种功能应用以及数据处理,即实现上述的移动终端获取环境温度的方法。As a computer-readable storage medium, the memory 42 can be used to store software programs, computer-executable programs and modules, such as program instructions/modules corresponding to the method for acquiring the ambient temperature by the mobile terminal in the embodiment of the present invention (for example, the mobile terminal acquires the The data acquisition module 31 and the temperature prediction module 32 in the device of ambient temperature). The processor 41 executes various functional applications and data processing of the mobile terminal by running the software programs, instructions and modules stored in the memory 42, that is, the above-mentioned method for obtaining the ambient temperature of the mobile terminal is implemented.
存储器42可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序;存储数据区可存储根据移动终端的使用所创建的数据等。此外,存储器42可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他非易失性固态存储器件。在一些实例中,存储器42可进一步包括相对于处理器41远程设置的存储器,这些远程存储器可以通过网络连接至移动终端。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory 42 may mainly include a stored program area and a stored data area, wherein the stored program area may store an operating system, an application program required for at least one function; the stored data area may store data created according to the use of the mobile terminal, and the like. Additionally, memory 42 may include high speed random access memory, and may also include nonvolatile memory, such as at least one magnetic disk storage device, flash memory device, or other nonvolatile solid state storage device. In some instances, the memory 42 may further include memory located remotely from the processor 41, and these remote memories may be connected to the mobile terminal through a network. Examples of such networks include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
输入装置43可用于获取通过温度传感器测量得到的基础温度,以及产生与移动终端的用户设置和功能控制有关的键信号输入等。输出装置44包括显示屏等设备,可用于向用户展示最终预测得到的环境温度等。The input device 43 can be used to acquire the basic temperature measured by the temperature sensor, and generate key signal input related to user setting and function control of the mobile terminal, and the like. The output device 44 includes a display screen and other devices, which can be used to display the final predicted ambient temperature and the like to the user.
实施例五Embodiment 5
本发明实施例五还提供一种包含计算机可执行指令的存储介质,该计算机可执行指令在由计算机处理器执行时用于执行一种移动终端获取环境温度的方法,该方法包括:Embodiment 5 of the present invention further provides a storage medium containing computer-executable instructions, where the computer-executable instructions, when executed by a computer processor, are used to execute a method for a mobile terminal to acquire an ambient temperature, and the method includes:
获取移动终端的使用状态和移动终端内设置的温度传感器测量得到的基础温度;Obtain the usage status of the mobile terminal and the basic temperature measured by the temperature sensor set in the mobile terminal;
将使用状态和基础温度输入训练后的深度学习模型,以对移动终端所处的环境温度进行预测。The use state and base temperature are input into the trained deep learning model to predict the ambient temperature where the mobile terminal is located.
存储介质可以是任何的各种类型的存储器设备或存储设备。术语“存储介质”旨在包括:安装介质,例如CD-ROM、软盘或磁带装置;计算机系统存储器或随机存取存储器,诸如DRAM、DDR RAM、SRAM、EDO RAM,兰巴斯(Rambus)RAM等;非易失性存储器,诸如闪存、磁介质(例如硬盘或光存储);寄存器或其它相似类型的存储器元件等。存储介质可以还包括其它类型的存储器或其组合。另外,存储介质可以位于程序在其中被执行的计算机系统中,或者可以位于不同的第二计算机系统中,第二计算机系统通过网络(诸如因特网)连接到计算机系统。第二计算机系统可以提供程序指令给计算机用于执行。术语“存储介质”可以包括可以驻留在不同位置中(例如在通过网络连接的不同计算机系统中)的两个或更多存储介质。存储介质可以存储可由一个或多个处理器执行的程序指令(例如具体实现为计算机程序)。The storage medium may be any of various types of memory devices or storage devices. The term "storage medium" is intended to include: installation media such as CD-ROM, floppy disk or tape devices; computer system memory or random access memory such as DRAM, DDR RAM, SRAM, EDO RAM, Rambus RAM, etc.; non-volatile memory such as flash memory, magnetic media (eg, hard disk or optical storage); registers or other similar types of memory elements, and the like. The storage medium may also include other types of memory or combinations thereof. In addition, the storage medium may be located in the computer system in which the program is executed, or may be located in a different second computer system connected to the computer system through a network such as the Internet. The second computer system may provide program instructions to the computer for execution. The term "storage medium" may include two or more storage media that may reside in different locations (eg, in different computer systems connected by a network). The storage medium may store program instructions (eg, embodied as a computer program) executable by one or more processors.
当然,本发明实施例所提供的一种包含计算机可执行指令的存储介质,其计算机可执行指令不限于如上所述的方法操作,还可以执行本发明任意实施例所提供的移动终端获取环境温度的方法中的相关操作。Of course, a storage medium containing computer-executable instructions provided by the embodiments of the present invention is not limited to the above-mentioned method operations, and can also execute the mobile terminal provided by any embodiment of the present invention to obtain the ambient temperature related operations in the method.
计算机可读的信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读的信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。A computer-readable signal medium may include a propagated data signal in baseband or as part of a carrier wave, with computer-readable program code embodied thereon. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing. A computer-readable signal medium can also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device .
计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于无线、电线、光缆、RF等等,或者上述的任意合适的组合。Program code embodied on a computer readable medium may be transmitted using any suitable medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
通过以上关于实施方式的描述,所属领域的技术人员可以清楚地了解到,本发明可借助软件及必需的通用硬件来实现,当然也可以通过硬件实现,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在计算机可读存储介质中,如计算机的软盘、只读存储器(Read-Only Memory, ROM)、随机存取存储器(Random Access Memory, RAM)、闪存(FLASH)、硬盘或光盘等,包括若干指令用以使得一台移动终端(可以是手机,平板电脑,或者智能穿戴设备等)执行本发明各个实施例所述的方法。From the above description of the embodiments, those skilled in the art can clearly understand that the present invention can be realized by software and necessary general-purpose hardware, and of course can also be realized by hardware, but in many cases the former is a better embodiment . Based on such understanding, the technical solutions of the present invention can be embodied in the form of software products in essence or the parts that make contributions to the prior art, and the computer software products can be stored in a computer-readable storage medium, such as a floppy disk of a computer , Read-Only Memory (ROM), Random Access Memory (RAM), flash memory (FLASH), hard disk or CD, etc., including several instructions to make a mobile terminal (which can be a mobile phone, A tablet computer, or a smart wearable device, etc.) executes the methods described in the various embodiments of the present invention.
注意,上述仅为本发明的较佳实施例及所运用技术原理。本领域技术人员会理解,本发明不限于这里所述的特定实施例,对本领域技术人员来说能够进行各种明显的变化、重新调整和替代而不会脱离本发明的保护范围。因此,虽然通过以上实施例对本发明进行了较为详细的说明,但是本发明不仅仅限于以上实施例,在不脱离本发明构思的情况下,还可以包括更多其他等效实施例,而本发明的范围由所附的权利要求范围决定。Note that the above are only preferred embodiments of the present invention and applied technical principles. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the protection scope of the present invention. Therefore, although the present invention has been described in detail through the above embodiments, the present invention is not limited to the above embodiments, and can also include more other equivalent embodiments without departing from the concept of the present invention. The scope is determined by the scope of the appended claims.

Claims (10)

  1. 一种移动终端获取环境温度的方法,其特征在于,包括: A method for obtaining ambient temperature by a mobile terminal, comprising:
    获取移动终端的使用状态和所述移动终端内设置的温度传感器测量得到的基础温度;Obtain the use state of the mobile terminal and the basic temperature measured by the temperature sensor provided in the mobile terminal;
    将所述使用状态和所述基础温度输入训练后的深度学习模型,以对所述移动终端所处的环境温度进行预测。The usage state and the base temperature are input into the trained deep learning model to predict the ambient temperature where the mobile terminal is located.
  2. 根据权利要求1所述的移动终端获取环境温度的方法,其特征在于,在所述将所述使用状态和所述基础温度输入训练后的深度学习模型,以对所述移动终端所处的环境温度进行预测之后,还包括: The method for obtaining an ambient temperature by a mobile terminal according to claim 1, characterized in that, in the deep learning model after inputting the use state and the basic temperature into a trained deep learning model, to determine the environment in which the mobile terminal is located. After the temperature is predicted, it also includes:
    基于蓝牙广播众包,按照预设周期扫描周围其他移动终端广播的参考使用状态和参考环境温度;Based on Bluetooth broadcast crowdsourcing, scan the reference usage status and reference ambient temperature broadcast by other surrounding mobile terminals according to a preset period;
    根据所述参考使用状态和所述参考环境温度对预测的所述环境温度进行校正。The predicted ambient temperature is corrected according to the reference usage state and the reference ambient temperature.
  3. 根据权利要求1所述的移动终端获取环境温度的方法,其特征在于,在所述将所述使用状态和所述基础温度输入训练后的深度学习模型,以对所述移动终端所处的环境温度进行预测之前,还包括: The method for obtaining an ambient temperature by a mobile terminal according to claim 1, characterized in that, in the deep learning model after inputting the use state and the basic temperature into a trained deep learning model, to determine the environment in which the mobile terminal is located. Before temperature predictions are made, it also includes:
    获取训练样本数据,每个训练样本数据包括以预设环境温度标记的预设移动终端在预设使用状态下对应的基础温度;Acquiring training sample data, where each training sample data includes a base temperature corresponding to a preset mobile terminal marked with a preset ambient temperature in a preset use state;
    根据所述训练样本数据对所述深度学习模型进行训练,以获得训练后的所述深度学习模型。The deep learning model is trained according to the training sample data to obtain the trained deep learning model.
  4. 根据权利要求3所述的移动终端获取环境温度的方法,其特征在于,所述获取训练样本数据,包括: The method for acquiring ambient temperature by a mobile terminal according to claim 3, wherein the acquiring training sample data comprises:
    获取所述预设移动终端在所述预设使用状态下对应的基础温度;acquiring the basic temperature corresponding to the preset mobile terminal in the preset use state;
    接收实时电子温度计上传的所述预设环境温度;receiving the preset ambient temperature uploaded by the real-time electronic thermometer;
    根据所述预设环境温度,按照时间戳对所述预设移动终端在所述预设使用状态下对应的基础温度进行标记。According to the preset ambient temperature, the preset basic temperature corresponding to the mobile terminal in the preset use state is marked according to the time stamp.
  5. 根据权利要求3所述的移动终端获取环境温度的方法,其特征在于,在所述根据所述训练样本数据对所述深度学习模型进行训练,以获得训练后的所述深度学习模型之前,还包括: The method for obtaining an ambient temperature by a mobile terminal according to claim 3, wherein before the deep learning model is trained according to the training sample data to obtain the trained deep learning model, further include:
    分别确定所述预设使用状态中的每种变量与所述预设环境温度之间的相关系数;respectively determining the correlation coefficient between each variable in the preset use state and the preset ambient temperature;
    根据所述相关系数对所述预设使用状态中的变量进行筛选。The variables in the preset usage state are screened according to the correlation coefficient.
  6. 根据权利要求5所述的移动终端获取环境温度的方法,其特征在于,所述相关系数为皮尔森相关系数。 The method for obtaining an ambient temperature by a mobile terminal according to claim 5, wherein the correlation coefficient is a Pearson correlation coefficient.
  7. 根据权利要求1所述的移动终端获取环境温度的方法,其特征在于,所述使用状态包括所述移动终端的中央处理器的占用率、屏幕激活状态、传感器数据以及电池信息中的一种或至少两种的组合。 The method for acquiring an ambient temperature by a mobile terminal according to claim 1, wherein the usage status includes one or more of an occupancy rate of a central processing unit of the mobile terminal, a screen activation status, sensor data, and battery information. A combination of at least two.
  8. 一种移动终端获取环境温度的装置,其特征在于,包括: A device for obtaining ambient temperature by a mobile terminal, comprising:
    数据获取模块,用于获取移动终端的使用状态和所述移动终端内设置的温度传感器测量得到的基础温度;a data acquisition module for acquiring the use state of the mobile terminal and the basic temperature measured by a temperature sensor provided in the mobile terminal;
    温度预测模块,用于将所述使用状态和所述基础温度输入训练后的深度学习模型,以对所述移动终端所处的环境温度进行预测。A temperature prediction module, configured to input the usage state and the basic temperature into the deep learning model after training, so as to predict the ambient temperature where the mobile terminal is located.
  9. 一种移动终端,其特征在于,包括: A mobile terminal, comprising:
    一个或多个处理器;one or more processors;
    存储器,用于存储一个或多个程序;memory for storing one or more programs;
    当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现如权利要求1-7中任一所述的移动终端获取环境温度的方法。When the one or more programs are executed by the one or more processors, the one or more processors implement the method for obtaining an ambient temperature by a mobile terminal according to any one of claims 1-7.
  10. 一种计算机可读存储介质,其上存储有计算机程序,其特征在于,该程序被处理器执行时实现如权利要求1-7中任一所述的移动终端获取环境温度的方法。 A computer-readable storage medium on which a computer program is stored, characterized in that, when the program is executed by a processor, the method for obtaining an ambient temperature by a mobile terminal according to any one of claims 1-7 is implemented.
PCT/CN2021/118088 2020-12-31 2021-09-14 Method and apparatus for acquiring environmental temperature by mobile terminal, mobile terminal, and medium WO2022142471A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011633454.4A CN112834067A (en) 2020-12-31 2020-12-31 Method and device for acquiring environment temperature by mobile terminal, mobile terminal and medium
CN202011633454.4 2020-12-31

Publications (1)

Publication Number Publication Date
WO2022142471A1 true WO2022142471A1 (en) 2022-07-07

Family

ID=75925911

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/118088 WO2022142471A1 (en) 2020-12-31 2021-09-14 Method and apparatus for acquiring environmental temperature by mobile terminal, mobile terminal, and medium

Country Status (2)

Country Link
CN (1) CN112834067A (en)
WO (1) WO2022142471A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116016764A (en) * 2023-01-04 2023-04-25 天津智融创新科技发展有限公司 User state generation and pushing method and device
CN117309195A (en) * 2023-11-30 2023-12-29 中控技术股份有限公司 Detection method and device of temperature measuring instrument and electronic equipment

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112834067A (en) * 2020-12-31 2021-05-25 南方科技大学 Method and device for acquiring environment temperature by mobile terminal, mobile terminal and medium
CN113720494A (en) * 2021-08-09 2021-11-30 Oppo广东移动通信有限公司 Temperature detection method, device, equipment and storage medium
CN113419868B (en) * 2021-08-23 2021-11-16 南方科技大学 Temperature prediction method, device, equipment and storage medium based on crowdsourcing

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030064749A1 (en) * 2001-10-02 2003-04-03 Nokia Corporation Mobile telephone featuring accelerated ambient temperature measurement module
CN103196574A (en) * 2013-03-20 2013-07-10 北京小米科技有限责任公司 Method and device for measuring environment temperatures
CN104583725A (en) * 2012-07-02 2015-04-29 盛思锐股份公司 Portable electronic device
CN104729748A (en) * 2013-12-19 2015-06-24 罗伯特·博世有限公司 Method for determining the ambient temperature of a mobile device
CN109642827A (en) * 2016-09-02 2019-04-16 株式会社资生堂 Temperature Estimation System, temperature projectional technique and record have the record media of temperature estimation program
CN110672231A (en) * 2019-09-29 2020-01-10 中国人民解放军国防科技大学 Air temperature measuring method based on mobile phone battery temperature sensor
CN112834067A (en) * 2020-12-31 2021-05-25 南方科技大学 Method and device for acquiring environment temperature by mobile terminal, mobile terminal and medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030064749A1 (en) * 2001-10-02 2003-04-03 Nokia Corporation Mobile telephone featuring accelerated ambient temperature measurement module
CN104583725A (en) * 2012-07-02 2015-04-29 盛思锐股份公司 Portable electronic device
CN103196574A (en) * 2013-03-20 2013-07-10 北京小米科技有限责任公司 Method and device for measuring environment temperatures
CN104729748A (en) * 2013-12-19 2015-06-24 罗伯特·博世有限公司 Method for determining the ambient temperature of a mobile device
CN109642827A (en) * 2016-09-02 2019-04-16 株式会社资生堂 Temperature Estimation System, temperature projectional technique and record have the record media of temperature estimation program
CN110672231A (en) * 2019-09-29 2020-01-10 中国人民解放军国防科技大学 Air temperature measuring method based on mobile phone battery temperature sensor
CN112834067A (en) * 2020-12-31 2021-05-25 南方科技大学 Method and device for acquiring environment temperature by mobile terminal, mobile terminal and medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116016764A (en) * 2023-01-04 2023-04-25 天津智融创新科技发展有限公司 User state generation and pushing method and device
CN116016764B (en) * 2023-01-04 2024-06-04 天津智融创新科技发展有限公司 User state pushing method and device, electronic equipment and readable storage medium
CN117309195A (en) * 2023-11-30 2023-12-29 中控技术股份有限公司 Detection method and device of temperature measuring instrument and electronic equipment
CN117309195B (en) * 2023-11-30 2024-04-12 中控技术股份有限公司 Detection method and device of temperature measuring instrument and electronic equipment

Also Published As

Publication number Publication date
CN112834067A (en) 2021-05-25

Similar Documents

Publication Publication Date Title
WO2022142471A1 (en) Method and apparatus for acquiring environmental temperature by mobile terminal, mobile terminal, and medium
US10031491B2 (en) Adaptive sensor data selection and sampling based on current and future context
US10514177B2 (en) Smartvent and atmospheric controller apparatuses, methods and systems
CN110062050B (en) Exploration management equipment and method
US9709291B2 (en) Humidity monitoring and adjustment system
US9312575B2 (en) Battery testing system and method
US8399115B2 (en) System and apparatus for monitoring large battery stacks using wireless sensor networks
US20160363334A1 (en) Controlling devices based on physiological measurements
EP2690436A1 (en) Method for operating a portable electronic device
EP3563266B1 (en) Normalization of sensors
CN106522733A (en) Method, device and system for controlling opening angle of window
CN116744357A (en) Base station fault prediction method, device, equipment and medium
Pau et al. A practical approach based on Bluetooth Low Energy and Neural Networks for indoor localization and targeted devices’ identification by smartphones
CN113255151A (en) Tunnel construction deformation prediction method and system based on composite neural network
US20150170032A1 (en) Accelerometer-Based Movement Prediction System
CN105276752A (en) Sound-signal-based adjusting method and system for operating parameter for air conditioner
TWI826949B (en) Battery performance evaluation device and battery performance evaluation method
CN116520718A (en) Intelligent home self-adaptive control method and device based on Internet of things technology
CN111737914A (en) Method and device for measuring water mixing flow of oil well, electronic equipment and storage medium
Tseng et al. ZigBee (2.4 G) wireless sensor network application on indoor intrusion detection
CN204556819U (en) A kind of radio multimedia sensor network positioning testing system
Permana et al. Autonomous temperature and humidity wireless sensor node for indoor air quality monitoring application
CN108549232A (en) A kind of room air self-adaptation control method based on approximate model planning
Vignesh et al. Deep Reinforcement Learning Based Weather Monitoring Systemusing Arduino for Smart Environment
CN109151736B (en) Bracelet positioning method, device, storage medium and computer equipment

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21913218

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21913218

Country of ref document: EP

Kind code of ref document: A1