WO2020207316A1 - Device resource configuration method and apparatus, storage medium and electronic device - Google Patents
Device resource configuration method and apparatus, storage medium and electronic device Download PDFInfo
- Publication number
- WO2020207316A1 WO2020207316A1 PCT/CN2020/082820 CN2020082820W WO2020207316A1 WO 2020207316 A1 WO2020207316 A1 WO 2020207316A1 CN 2020082820 W CN2020082820 W CN 2020082820W WO 2020207316 A1 WO2020207316 A1 WO 2020207316A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- resource configuration
- information
- configuration information
- electronic device
- sensor
- Prior art date
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/50—Allocation of resources, e.g. of the central processing unit [CPU]
- G06F9/5005—Allocation of resources, e.g. of the central processing unit [CPU] to service a request
- G06F9/5011—Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01D—MEASURING NOT SPECIALLY ADAPTED FOR A SPECIFIC VARIABLE; ARRANGEMENTS FOR MEASURING TWO OR MORE VARIABLES NOT COVERED IN A SINGLE OTHER SUBCLASS; TARIFF METERING APPARATUS; MEASURING OR TESTING NOT OTHERWISE PROVIDED FOR
- G01D21/00—Measuring or testing not otherwise provided for
- G01D21/02—Measuring two or more variables by means not covered by a single other subclass
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/50—Allocation of resources, e.g. of the central processing unit [CPU]
Definitions
- This application belongs to the technical field of electronic equipment, and in particular relates to a method, device, storage medium and electronic equipment for configuring equipment resources.
- This application provides a device resource configuration method, device, storage medium, and electronic device, which can improve the accuracy of the device resource allocation by the electronic device.
- an embodiment of the present application provides a device resource configuration method applied to an electronic device, including:
- an embodiment of the present application provides a device resource configuration method applied to a server, including:
- an embodiment of the present application provides a device resource configuration device, which is applied to an electronic device, and includes: an acquisition module, an identification module, a matching module, and a setting module;
- the acquisition module is configured to receive a resource configuration information set sent by a server, the resource configuration information set includes user scenario category information and corresponding resource configuration information;
- the identification module is used to obtain the current state information of the electronic device, and identify the current situation category information of the user according to the state information;
- the matching module is configured to match corresponding resource configuration information in the resource configuration information set according to the current situation category information
- the setting module is configured to set the electronic device according to the resource configuration information.
- an embodiment of the present application provides a device resource configuration device, which is applied to a server and includes: a receiving module, a determining module, a generating module, and a sending module;
- the receiving module is configured to receive user context category information and corresponding resource configuration information sent by multiple electronic devices;
- the determining module is configured to determine the target resource configuration information corresponding to each user scenario category information according to a preset algorithm
- the generating module is configured to generate a resource configuration information set according to the multiple user scenario category information and corresponding target resource configuration information.
- the sending module is configured to send the resource configuration information set to an electronic device.
- an embodiment of the present application provides a storage medium on which a computer program is stored, and when the computer program runs on a computer, the computer is caused to execute the above-mentioned device resource configuration method.
- an embodiment of the present application provides an electronic device, including a processor and a memory, the memory stores a plurality of instructions, and the processor loads the instructions in the memory to perform the following steps:
- Figure 1 is a schematic diagram of an application scenario of a device resource configuration method provided by an embodiment of the application.
- FIG. 2 is a schematic flowchart of a method for configuring device resources provided by an embodiment of the application.
- FIG. 3 is a schematic diagram of another flow of a device resource configuration method provided by an embodiment of the application.
- FIG. 4 is a schematic diagram of another flow of the device resource configuration method provided by an embodiment of the application.
- FIG. 5 is a schematic structural diagram of a device resource configuration apparatus provided by an embodiment of the application.
- FIG. 6 is a schematic diagram of another structure of the device resource configuration apparatus provided by an embodiment of the application.
- FIG. 7 is another schematic structural diagram of the device resource configuration apparatus provided by an embodiment of the application.
- FIG. 8 is a schematic structural diagram of an electronic device provided by an embodiment of the application.
- FIG. 9 is a schematic diagram of another structure of an electronic device provided by an embodiment of the application.
- FIG. 1 is a schematic diagram of an application scenario of a device resource configuration method provided by an embodiment of the application.
- the device resource configuration method is applied to electronic devices.
- the electronic device is provided with a panoramic sensing architecture.
- the panoramic perception architecture is the integration of hardware and software used to implement the device resource configuration method in an electronic device.
- the panoramic perception architecture includes an information perception layer, a data processing layer, a feature extraction layer, a scenario modeling layer, and an intelligent service layer.
- the information perception layer is used to obtain the information of the electronic device itself or the information in the external environment.
- the information perception layer may include multiple sensors.
- the information sensing layer includes multiple sensors such as a distance sensor, a magnetic field sensor, a light sensor, an acceleration sensor, a fingerprint sensor, a Hall sensor, a position sensor, a gyroscope, an inertial sensor, a posture sensor, a barometer, and a heart rate sensor.
- the distance sensor can be used to detect the distance between the electronic device and an external object.
- the magnetic field sensor can be used to detect the magnetic field information of the environment in which the electronic device is located.
- the light sensor can be used to detect the light information of the environment in which the electronic device is located.
- the acceleration sensor can be used to detect the acceleration data of the electronic device.
- the fingerprint sensor can be used to collect the user's fingerprint information.
- Hall sensor is a kind of magnetic field sensor made according to Hall effect, which can be used to realize automatic control of electronic equipment.
- the location sensor can be used to detect the current geographic location of the electronic device. Gyroscopes can be used to detect the angular velocity of electronic devices in various directions. Inertial sensors can be used to detect movement data of electronic devices.
- the attitude sensor can be used to sense the attitude information of the electronic device.
- the barometer can be used to detect the air pressure of the environment where the electronic device is located.
- the heart rate sensor can be used to detect the user's heart rate information.
- the data processing layer is used to process the data obtained by the information perception layer.
- the data processing layer can perform data cleaning, data integration, data transformation, and data reduction on the data acquired by the information perception layer.
- data cleaning refers to cleaning up a large amount of data obtained by the information perception layer to eliminate invalid data and duplicate data.
- Data integration refers to the integration of multiple single-dimensional data acquired by the information perception layer into a higher or more abstract dimension to comprehensively process multiple single-dimensional data.
- Data transformation refers to the data type conversion or format conversion of the data acquired by the information perception layer, so that the transformed data meets the processing requirements.
- Data reduction means to minimize the amount of data while maintaining the original appearance of the data as much as possible.
- the feature extraction layer is used to perform feature extraction on data processed by the data processing layer to extract features included in the data.
- the extracted features can reflect the state of the electronic device itself or the state of the user or the environmental state of the environment in which the electronic device is located.
- the feature extraction layer can extract features or process the extracted features through methods such as filtering, packaging, and integration.
- the filtering method refers to filtering the extracted features to delete redundant feature data.
- the packaging method is used to screen the extracted features.
- the integration method refers to the integration of multiple feature extraction methods to construct a more efficient and accurate feature extraction method for feature extraction.
- the scenario modeling layer is used to construct a model based on the features extracted by the feature extraction layer, and the obtained model can be used to represent the state of the electronic device or the state of the user or the environment.
- the scenario modeling layer can construct key value models, pattern identification models, graph models, entity connection models, object-oriented models, etc. based on the features extracted by the feature extraction layer.
- the intelligent service layer is used to provide users with intelligent services based on the model constructed by the scenario modeling layer.
- the intelligent service layer can provide users with basic application services, can perform system intelligent optimization for electronic devices, and can also provide users with personalized intelligent services.
- the panoramic perception architecture may also include multiple algorithms, each of which can be used to analyze and process data, and the multiple algorithms can form an algorithm library.
- the algorithm library may include Markov algorithm, implicit Dirichlet distribution algorithm, Bayesian classification algorithm, support vector machine, K-means clustering algorithm, K nearest neighbor classification algorithm, conditional random field, residual Algorithms such as difference network, long short-term memory network, convolutional neural network, recurrent neural network, etc.
- the embodiment of the application provides a device resource configuration method.
- the execution subject of the device resource configuration method may be the device resource configuration device provided in the embodiment of the application, or an electronic device integrated with the device resource configuration device, wherein the device resource configuration device
- the device can be implemented in hardware or software.
- the device resource configuration method includes: receiving a resource configuration information set sent by a server, the resource configuration information set including user scenario category information and corresponding resource configuration information;
- the state information of the electronic device includes sensor information, and identifying the user's current situation category information according to the state information includes:
- processing the sensor information according to a preset algorithm model includes:
- the sensor tensor is processed according to the preset algorithm model.
- setting the electronic device according to the resource configuration information includes:
- the device resource is set according to the target parameter.
- setting the device resource according to the target parameter includes:
- the current parameter of the device resource is adjusted to the target parameter.
- FIG. 2 is a schematic flowchart of a device resource configuration method provided by an embodiment of the application.
- the device resource configuration method provided by the embodiment of the application is applied to an electronic device, and the specific process may be as follows:
- Step 101 Receive a resource configuration information set sent by a server, where the resource configuration information set includes user scenario category information and corresponding resource configuration information.
- the server receives user scenario category information and corresponding resource configuration information sent by multiple users, obtains the optimal resource configuration information corresponding to different scenario category information through learning, and then sends it to the electronic device, and the electronic The device selects the corresponding best resource configuration information according to the current user scenario category information.
- the above-mentioned user situation category information may be the user's state information, such as sleep, office, travel, games, driving, fitness, etc. Further, the above-mentioned situation category information may also include location information, such as at home or In the work place, etc., the home and work place can be determined by analyzing the historical location information of the user, which is not further limited here. It should be noted that the above-mentioned user situation category information does not conflict with each other, that is, the user can satisfy multiple above-mentioned user situation category information at the same time, for example, the user plays games at home, or the user works at the work place. Among them, each user scenario category information corresponds to a kind of resource configuration information.
- the foregoing resource configuration information may include setting information of device resources in the terminal, and the device resources include information such as CPU (Central Processing Unit, central processing unit), GPU (Graphics Processing Unit), memory, and network. Speed and so on, among them, different resource allocation schemes will bring different performance and power consumption to electronic devices.
- the above resource configuration information may also include some setting information of the electronic device, such as GPS settings, Bluetooth settings, NFC settings, WIFI settings, and so on.
- the user's situation category information includes when at home, the corresponding resource configuration information may include turning on WIFI and turning off the mobile network. If the user's situation category information includes traveling, the corresponding resource configuration information may include turning on GPS.
- Step 102 Acquire current state information of the electronic device, and identify the user's current situation category information according to the state information.
- the current state information of the above electronic device may include system operation information and sensor information of the electronic device, and so on.
- the electronic device has built-in sensors with different functions, and these sensors can detect the current state of the electronic device at any time.
- the motion state of the electronic device can be detected by an acceleration sensor (G-Sensor) and a gyroscope.
- the acceleration sensor may be a three-axis linear acceleration sensor, which is used to detect linear accelerations in three mutually orthogonal axes of the electronic device.
- the gyroscope is used to detect the upward rotation speed of the three mutually orthogonal axes of the electronic device.
- the electronic device If the value detected by the acceleration sensor and the gyroscope within a unit time does not change, the electronic device is considered to be in a static state. As long as a value of the acceleration sensor and gyroscope changes in a unit of time, the electronic device can be considered to be in motion, and then the user’s current situation category information can be identified based on the status information. For example, when the electronic device is in motion, the current speed can be Determine whether the user is walking or driving. In addition, the electronic device can also detect the intensity of ambient light through the light sensor. Regarding the working principles of the acceleration sensor, the gyroscope, and the light sensor, reference may be made to the prior art, which will not be repeated here.
- environmental information and user information may be further obtained.
- the environmental information may include weather, temperature, time, etc.
- the user information may include age, gender, behavior records, etc.
- the information may be input into the scene category prediction model to predict the user's scene category information.
- the output result of the above scenario category prediction model may be multiple scenarios and corresponding probabilities, and the highest probability may be selected as the prediction result.
- Step 103 Match the corresponding resource configuration information in the resource configuration information set according to the current situation category information.
- the resource configuration information set sent by the receiving server is searched for a sample that is the same as the current scenario category information, and then the resource configuration information corresponding to the sample is obtained.
- the resource configuration information collection obtained from the server contains many user scenario category information and corresponding resource configuration information, and some of the scenario category information has never or rarely matched the current user, for example, the current user If you basically do not play games, you can delete the situation category information from the resource configuration information set, thereby improving the matching efficiency.
- the user’s commonly used scenario category information can be determined according to the user’s usage information within a preset time period and the frequency of use, and then after the resource configuration information collection sent by the server is obtained, only the aforementioned common scenario category information and corresponding Resource configuration information is sufficient.
- Step 104 Set the electronic device according to the resource configuration information.
- related parameters in the electronic device are set according to the above resource configuration information, such as limiting the CPU frequency, limiting the current network speed, turning on the WIFI switch, and so on.
- prompt information may be generated according to the setting information contained in the resource configuration information for the user to confirm the selection, which can avoid misoperation.
- the corresponding resource configuration information can include turning on the WIFI switch.
- the electronic device will automatically connect to the home network hotspot.
- the mobile of the electronic device can also be turned off. Network to save user traffic.
- the user before turning on the WIFI switch, the user can be prompted in the form of a pop-up window to choose whether to turn on the WIFI switch. For example, when the mobile network speed of the electronic device is higher than the network speed after connecting to the WIFI and the remaining mobile network traffic is large , Users can choose not to turn on the WIFI switch and continue to use mobile network data, which provides users with more choices.
- the device resource configuration method can receive the resource configuration information set sent by the server.
- the resource configuration information set includes the user's situation category information and corresponding resource configuration information, obtains the current state information of the electronic device, and Identify the user's current situation category information according to the status information, match the corresponding resource configuration information in the resource configuration information set according to the current situation category information, and set the electronic device according to the resource configuration information.
- the embodiments of the present application can intelligently identify the current situation category information, and generate a corresponding resource configuration scheme based on the situation category information to set the electronic device, which can significantly improve the accuracy of device resource allocation and the pertinence of resource utilization.
- FIG. 3 is a schematic diagram of another process of a device resource configuration method provided by an embodiment of the application.
- the device resource configuration method includes:
- Step 201 Receive a resource configuration information set sent by a server, where the resource configuration information set includes user scenario category information and corresponding resource configuration information.
- the server receives user scenario category information and corresponding resource configuration information sent by multiple users, obtains the optimal resource configuration information corresponding to different scenario category information through learning, and then sends it to the electronic device, and the electronic The device selects the corresponding best resource configuration information according to the current user scenario category information.
- the above-mentioned user situation category information may be the user's state information, such as sleep, office, travel, games, driving, fitness, etc. Further, the above-mentioned situation category information may also include location information, such as at home or In the work place, etc., the home and work place can be determined by analyzing the historical location information of the user, which is not further limited here. It should be noted that the above-mentioned user situation category information does not conflict with each other, that is, the user can satisfy multiple above-mentioned user situation category information at the same time, for example, the user plays games at home, or the user works at the work place. Among them, each user scenario category information corresponds to a kind of resource configuration information.
- Step 202 Acquire current sensor information of the electronic device, and process the sensor information according to a preset algorithm model to obtain probabilities corresponding to various types of scene information.
- Step 203 Determine the user's current scene category information according to the probability.
- electronic devices have built-in sensors with different functions, and these sensors can detect the current state of the electronic device at any time.
- the current sensor information of the electronic device can be obtained, and then a preset prediction model can be input to obtain the probabilities corresponding to various scene category information, and the user's current scene category information can be determined according to the probability. For example, the situation category information with the highest probability.
- the foregoing processing of the sensor information according to a preset algorithm model includes:
- the sensor tensor is processed according to the preset algorithm model.
- the motion state of the electronic device can be detected by an acceleration sensor (G-Sensor) and a gyroscope.
- the acceleration sensor may be a three-axis linear acceleration sensor, which is used to detect linear accelerations in three mutually orthogonal axes of the electronic device.
- the gyroscope is used to detect the upward rotation speed of the three mutually orthogonal axes of the electronic device. If the value detected by the acceleration sensor and the gyroscope within a unit time does not change, the electronic device is considered to be in a static state.
- the electronic device can be considered to be in a motion state, and then the user's current situation category information can be identified according to the state information.
- the electronic device can also detect the intensity of ambient light through the light sensor.
- Step 204 Match the corresponding resource configuration information in the resource configuration information set according to the current situation category information.
- the resource configuration information set sent by the receiving server is searched for a sample that is the same as the current scenario category information, and then the resource configuration information corresponding to the sample is obtained.
- the above resource configuration information may include the setting information of the device resources in the terminal.
- the device resources include such as CPU, GPU, memory, network speed, etc., among which, different resource configuration schemes will bring different performance and functions to the electronic device. Consumption.
- the above resource configuration information may also include some setting information of the electronic device, such as GPS settings, Bluetooth settings, NFC settings, WIFI settings, and so on.
- Step 205 Obtain device resources included in the resource configuration information and target parameters corresponding to the device resources.
- Step 206 Set the device resource according to the target parameter.
- set relevant device resources and corresponding target parameters according to the above resource configuration information, such as setting the CPU frequency to 2.5GHz, limiting the current network speed to 1M/s, setting the screen resolution to 2220 ⁇ 1080, and so on.
- the aforementioned device resource may also be a setting in an electronic device, and its corresponding target parameter may be a setting state, such as turning on the WIFI switch, turning off Bluetooth, and so on.
- the step of setting the device resource according to the target parameter may include:
- the current parameter of the device resource is adjusted to the target parameter.
- prompt information before setting the electronic device according to the resource configuration information, prompt information may be generated according to the setting information contained in the resource configuration information for the user to confirm the selection, which can avoid misoperation.
- the device resource configuration method can receive the resource configuration information set sent by the server.
- the resource configuration information set includes the user's situation category information and corresponding resource configuration information, and obtains the current sensor information of the electronic device according to
- the preset algorithm model processes the sensor information to obtain the probabilities corresponding to various scene category information, determines the user's current scene category information according to the probability, and matches the corresponding resource configuration information in the resource configuration information set according to the current situation category information.
- Obtain the device resource included in the resource configuration information and the target parameter corresponding to the device resource and set the device resource according to the target parameter.
- the embodiments of the present application can intelligently identify the current situation category information, and generate a corresponding resource configuration scheme based on the situation category information to set the electronic device, which can significantly improve the accuracy of device resource allocation and the pertinence of resource utilization.
- the embodiment of the present application also provides a device resource configuration method.
- the device resource configuration device may be specifically integrated in a server.
- the device resource configuration method includes:
- the preset algorithm is a collaborative filtering algorithm.
- FIG. 4 is another flowchart of the device resource configuration method provided by an embodiment of the application.
- the device resource configuration method includes:
- Step 301 Receive user context category information and corresponding resource configuration information sent by multiple electronic devices.
- the above-mentioned user situation category information may be the user's state information, such as sleep, office, travel, games, driving, fitness, etc. Further, the above-mentioned situation category information may also include location information, such as at home or at work, etc. , The home and work location can be determined by analyzing the user’s historical location information, which is not further limited here.
- the above resource configuration information may include setting information of device resources in the terminal.
- the device resources include CPU, GPU, memory, network speed, etc., where different resource configuration schemes will bring different performance and power consumption to electronic devices.
- the above resource configuration information may also include some setting information of the electronic device, such as GPS settings, Bluetooth settings, NFC settings, WIFI settings, and so on.
- Step 302 Determine target resource configuration information corresponding to each user scenario category information according to a preset algorithm.
- the server receives the scenario category information uploaded by multiple electronic devices and the corresponding resource configuration information. Since each user has a different habit of using electronic devices, in the same scenario category, different users may be For different allocations, it is necessary to determine the target resource configuration information corresponding to each user scenario category information in the user big data.
- a collaborative filtering algorithm may be used to determine the target resource configuration information corresponding to each user context category information.
- the collaborative filtering algorithm discovers user preferences by mining user historical behavior data, divides users into groups based on different preferences, and recommends solutions with similar tastes. That is, in this embodiment, the resource configuration information set by most users under a situation category information is determined as the target resource configuration information.
- Step 303 Generate a resource configuration information set according to multiple user scenario category information and corresponding target resource configuration information.
- the server receives user scenario category information and corresponding resource configuration information sent by multiple users, obtains corresponding optimal resource configuration information under different scenario category information through learning, and generates a resource configuration information set.
- Step 304 Send the resource configuration information set to the electronic device.
- the resource configuration information set obtained from the server contains many user scenario category information and corresponding resource configuration information, some of the scenario category information never or rarely matches the current user, for example, the current user If the user basically does not play games, he can delete the situation category information and the corresponding target resource configuration information from the resource configuration information collection, and then send the deleted resource configuration information collection to the electronic device, and the electronic device can perform matching. Improve matching efficiency.
- the device resource configuration method can receive user context category information and corresponding resource configuration information sent by multiple electronic devices, and determine the target resource configuration corresponding to each user context category information according to a preset algorithm Information, generating a resource configuration information set according to multiple user scenario category information and corresponding target resource configuration information, and sending the resource configuration information set to the electronic device.
- the embodiment of the present application can learn the best resource configuration information corresponding to each scenario category information by learning the scenario category information of multiple users and the corresponding resource configuration information, and generate the best resource configuration plan.
- FIG. 5 is a schematic structural diagram of a device resource configuration apparatus provided by an embodiment of the application.
- the device resource configuration device 40 is applied to electronic devices, and includes an acquisition module 401, an identification module 402, a matching module 403, and a setting module 404;
- the obtaining module 401 is configured to receive a resource configuration information set sent by a server, where the resource configuration information set includes user scenario category information and corresponding resource configuration information;
- the identification module 402 is used to obtain the current state information of the electronic device, and identify the current situation category information of the user according to the state information;
- the matching module 403 is configured to match corresponding resource configuration information in the resource configuration information set according to the current situation category information
- the setting module 404 is configured to set the electronic device according to the resource configuration information.
- FIG. 6 is a schematic diagram of another structure of the device resource configuration apparatus 40 provided by an embodiment of the application, wherein the state information of the electronic device includes sensor information, and the identification module 402 Including: a processing sub-module 4021 and a determining sub-module 4022;
- the processing sub-module 4021 is configured to process the sensor information according to a preset algorithm model to obtain the probabilities corresponding to various types of scene information;
- the determining sub-module 4022 is configured to determine the current situation category information of the user according to the probability.
- the processing sub-module 4021 is specifically configured to perform vectorization processing on the sensor information to obtain a sensor vector, and superimpose the sensor vector to obtain a sensor tensor, according to the preset algorithm model Process the sensor tensor.
- the setting module 404 includes: an obtaining submodule 4041 and a setting submodule 4042;
- the acquiring submodule 4041 is configured to acquire the device resources included in the resource configuration information and the target parameters corresponding to the device resources;
- the setting submodule 4042 is configured to set the device resource according to the target parameter.
- the setting submodule 4042 is specifically configured to determine whether the current parameter of the device resource is the same as the target parameter, and if not, adjust the current parameter of the device resource to the target parameter.
- the device resource configuration apparatus of the embodiment of the present application can receive the resource configuration information set sent by the server.
- the resource configuration information set includes the user's situation category information and corresponding resource configuration information, obtains the current state information of the electronic device, and obtains
- the status information identifies the user's current situation category information, matches the corresponding resource configuration information in the resource configuration information set according to the current situation category information, and sets the electronic device according to the resource configuration information.
- the embodiments of the present application can intelligently identify the current situation category information, and generate a corresponding resource allocation plan based on the situation category information to set the electronic device, which can significantly improve the accuracy of device resource allocation and the specificity of resource utilization.
- FIG. 7 is another schematic structural diagram of the device resource configuration apparatus provided by an embodiment of the application.
- the device resource configuration apparatus 50 is applied to a server and includes a receiving module 501, a determining module 502, a generating module 503, and a sending module. Module 504;
- the receiving module 501 is configured to receive user context category information and corresponding resource configuration information sent by multiple electronic devices;
- the determining module 502 is configured to determine the target resource configuration information corresponding to each of the user context category information according to a preset algorithm
- the generating module 503 is configured to generate a resource configuration information set according to the multiple user scenario category information and corresponding target resource configuration information.
- the sending module 504 is configured to send the resource configuration information set to an electronic device.
- the preset algorithm is a collaborative filtering algorithm.
- the device resource configuration apparatus of the embodiment of the present application can receive user context category information and corresponding resource configuration information sent by multiple electronic devices, and determine the target resource configuration information corresponding to each user context category information according to a preset algorithm , Generate a resource configuration information set according to multiple user scenario category information and corresponding target resource configuration information, and send the resource configuration information set to the electronic device.
- the embodiment of the present application can learn the best resource configuration information corresponding to each scenario category information by learning the scenario category information of multiple users and the corresponding resource configuration information, and generate the best resource configuration plan.
- the device resource configuration device belongs to the same concept as the device resource configuration method in the above embodiment. Any method provided in the device resource configuration method embodiment can be run on the device resource configuration device, and its specific implementation process For details, refer to the embodiment of the device resource configuration method, which will not be repeated here.
- module used herein can be regarded as a software object executed on the operating system.
- the different components, modules, engines, and services described in this article can be regarded as implementation objects on the computing system.
- the devices and methods described herein can be implemented in the form of software, or of course, can also be implemented on hardware, and they are all within the protection scope of the present application.
- An embodiment of the present application also provides a storage medium on which a computer program is stored, and when the computer program runs on a computer, the computer is caused to execute the above-mentioned device resource configuration method.
- the embodiment of the present application also provides an electronic device, such as a tablet computer, a mobile phone, and so on.
- the processor in the electronic device will load the instructions corresponding to the process of one or more application programs into the memory according to the following steps, and the processor will run the application programs stored in the memory to realize various functions:
- the state information of the electronic device includes sensor information, and when the current situation category information of the user is identified according to the state information, the processor is configured to perform the following steps:
- the processor when processing the sensor information according to a preset algorithm model, the processor is configured to perform the following steps:
- the sensor tensor is processed according to the preset algorithm model.
- the processor when the electronic device is set according to the resource configuration information, the processor is configured to execute the following steps:
- the device resource is set according to the target parameter.
- the processor when setting the device resource according to the target parameter, the processor is configured to perform the following steps:
- the current parameter of the device resource is adjusted to the target parameter.
- the electronic device 600 includes a processor 601 and a memory 602.
- the processor 601 is electrically connected to the memory 602.
- the processor 600 is the control center of the electronic device 600. It uses various interfaces and lines to connect the various parts of the entire electronic device, and executes the electronic device by running or loading the computer program stored in the memory 602 and calling the data stored in the memory 602. Various functions of the device 600 and processing data, so as to monitor the electronic device 600 as a whole.
- the memory 602 can be used to store software programs and modules.
- the processor 601 executes various functional applications and data processing by running the computer programs and modules stored in the memory 602.
- the memory 602 may mainly include a storage program area and a storage data area.
- the storage program area may store an operating system, a computer program required by at least one function (such as a sound playback function, an image playback function, etc.), etc.; Data created by the use of electronic equipment, etc.
- the memory 602 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices.
- the memory 602 may further include a memory controller to provide the processor 601 with access to the memory 602.
- the processor 601 in the electronic device 600 loads the instructions corresponding to the process of one or more computer programs into the memory 602 according to the following steps, and the processor 601 runs and stores the instructions in the memory 602 In order to realize various functions in the computer program, as follows:
- the electronic device 600 may further include a display 603, a radio frequency circuit 604, an audio circuit 605 and a power supply 606.
- the display 603, the radio frequency circuit 604, the audio circuit 605, and the power supply 606 are electrically connected to the processor 601, respectively.
- the display 603 may be used to display information input by the user or information provided to the user, and various graphical user interfaces. These graphical user interfaces may be composed of graphics, text, icons, videos, and any combination thereof.
- the display 603 may include a display panel.
- the display panel may be configured in the form of a liquid crystal display (LCD) or an organic light-emitting diode (OLED).
- the radio frequency circuit 604 may be used to transmit and receive radio frequency signals to establish wireless communication with network equipment or other electronic equipment through wireless communication, and to transmit and receive signals with the network equipment or other electronic equipment.
- the audio circuit 605 can be used to provide an audio interface between the user and the electronic device through a speaker or a microphone.
- the power supply 606 can be used to power various components of the electronic device 600.
- the power supply 606 may be logically connected to the processor 601 through a power management system, so that functions such as charging, discharging, and power consumption management can be managed through the power management system.
- the electronic device 600 may also include a camera, a Bluetooth module, etc., which will not be repeated here.
- the storage medium may be a magnetic disk, an optical disc, a read only memory (Read Only Memory, ROM), or a random access memory (Random Access Memory, RAM), etc.
- the device resource configuration method of the embodiment of the present application ordinary testers in the field can understand that all or part of the process of implementing the device resource configuration method of the embodiment of the present application can be controlled by a computer program.
- the computer program can be stored in a computer readable storage medium, such as stored in the memory of an electronic device, and executed by at least one processor in the electronic device.
- the execution process can include such as device resource allocation method.
- the storage medium can be magnetic disk, optical disk, read-only memory, random access memory, etc.
- the device resource configuration device of the embodiment of the present application its functional modules may be integrated in one processing chip, or each module may exist alone physically, or two or more modules may be integrated in one module.
- the above-mentioned integrated modules can be implemented in the form of hardware or software functional modules. If the integrated module is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer readable storage medium, such as a read-only memory, a magnetic disk, or an optical disk.
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- User Interface Of Digital Computer (AREA)
- Stored Programmes (AREA)
Abstract
A device resource configuration method, comprising: receiving a resource configuration information set sent by a server, the resource configuration information set comprising scenario category information of a user and corresponding resource configuration information (101); acquiring current state information of an electronic device, and identifying current scenario category information of the user according to the state information (102); matching the corresponding resource configuration information in the resource configuration information set according to the current scenario category information (103); and configuring the electronic device according to the resource configuration information (104).
Description
本申请要求于2019年04月09日提交中国专利局、申请号为201910282433.3,发明名称为“设备资源配置方法、装置、存储介质及电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application filed with the Chinese Patent Office on April 9, 2019, the application number is 201910282433.3, and the invention title is "equipment resource allocation method, device, storage medium and electronic equipment", the entire content of which is incorporated by reference Incorporated in this application.
本申请属于电子设备技术领域,尤其涉及一种设备资源配置方法、装置、存储介质及电子设备。This application belongs to the technical field of electronic equipment, and in particular relates to a method, device, storage medium and electronic equipment for configuring equipment resources.
随着电子技术的发展,诸如智能手机等电子设备的智能化程度越来越高。用户所在的场景不同,对电子设备的资源、应用程序等相应服务需求不同,如用户在外出旅游、外出办公、游戏等不同场景下,对电子设备的需求不尽相同,如何根据用户所处场景,对用户的手机设备资源进行智能调度。当前的电子设备资源调度方案主要基于规则(如黑白名单),即由人为制定在什么时候调用什么资源,一方面适配性和鲁棒性差,另一方面不够智能、不够准确,使得最终的资源调度方案难以满足实际的应用需求。With the development of electronic technology, electronic devices such as smart phones are becoming more and more intelligent. Different scenarios of users have different requirements for corresponding services such as resources and applications of electronic devices. For example, users have different requirements for electronic devices in different scenarios such as travel, office and games. , Intelligent scheduling of the user's mobile device resources. Current electronic equipment resource scheduling schemes are mainly based on rules (such as black and white lists), that is, when to call which resources are manually determined. On the one hand, the adaptability and robustness are poor, and on the other hand, they are not intelligent and accurate enough to make the final resource. The scheduling scheme is difficult to meet the actual application requirements.
发明内容Summary of the invention
本申请提供一种设备资源配置方法、装置、存储介质及电子设备,可以提升电子设备分配设备资源的准确性。This application provides a device resource configuration method, device, storage medium, and electronic device, which can improve the accuracy of the device resource allocation by the electronic device.
第一方面,本申请实施例提供一种设备资源配置方法,应用于电子设备,包括:In the first aspect, an embodiment of the present application provides a device resource configuration method applied to an electronic device, including:
接收服务器发送的资源配置信息集合,所述资源配置信息集合包括用户的情景类别信息与对应的资源配置信息;Receiving a resource configuration information set sent by a server, where the resource configuration information set includes user scenario category information and corresponding resource configuration information;
获取电子设备当前的状态信息,并根据所述状态信息识别出用户当前的情景类别信息;Acquiring current state information of the electronic device, and identifying the user's current situation category information according to the state information;
根据所述当前的情景类别信息在所述资源配置信息集合当中匹配对应的资源配置信息;Matching corresponding resource configuration information in the resource configuration information set according to the current situation category information;
根据所述资源配置信息对所述电子设备进行设置。Setting the electronic device according to the resource configuration information.
第二方面,本申请实施例提供一种设备资源配置方法,应用于服务器,包括:In the second aspect, an embodiment of the present application provides a device resource configuration method applied to a server, including:
接收多个电子设备发送的用户情景类别信息与对应的资源配置信息;Receiving user scenario category information and corresponding resource configuration information sent by multiple electronic devices;
根据预设算法确定每个所述用户情景类别信息所对应的目标资源配置信息;Determining the target resource configuration information corresponding to each of the user scenario category information according to a preset algorithm;
根据所述多个用户情景类别信息以及对应的目标资源配置信息生成资源配置信息集合;Generating a resource configuration information set according to the multiple user scenario category information and corresponding target resource configuration information;
将所述资源配置信息集合发送至电子设备。Sending the resource configuration information set to the electronic device.
第三方面,本申请实施例提供一种设备资源配置装置,应用于电子设备,包括:获取模块、识别模块、匹配模块以及设置模块;In a third aspect, an embodiment of the present application provides a device resource configuration device, which is applied to an electronic device, and includes: an acquisition module, an identification module, a matching module, and a setting module;
所述获取模块,用于接收服务器发送的资源配置信息集合,所述资源配置信息集合包括用户的情景类别信息与对应的资源配置信息;The acquisition module is configured to receive a resource configuration information set sent by a server, the resource configuration information set includes user scenario category information and corresponding resource configuration information;
所述识别模块,用于获取电子设备当前的状态信息,并根据所述状态信息识别出用户当前的情景类别信息;The identification module is used to obtain the current state information of the electronic device, and identify the current situation category information of the user according to the state information;
所述匹配模块,用于根据所述当前的情景类别信息在所述资源配置信息集合当中匹配对应的资源配置信息;The matching module is configured to match corresponding resource configuration information in the resource configuration information set according to the current situation category information;
所述设置模块,用于根据所述资源配置信息对所述电子设备进行设置。The setting module is configured to set the electronic device according to the resource configuration information.
第四方面,本申请实施例提供一种设备资源配置装置,应用于服务器,包括:接收模块、确定模块、生成模块以及发送模块;In a fourth aspect, an embodiment of the present application provides a device resource configuration device, which is applied to a server and includes: a receiving module, a determining module, a generating module, and a sending module;
所述接收模块,用于接收多个电子设备发送的用户情景类别信息与对应的资源配置信息;The receiving module is configured to receive user context category information and corresponding resource configuration information sent by multiple electronic devices;
所述确定模块,用于根据预设算法确定每个所述用户情景类别信息所对应的目标资源配置信息;The determining module is configured to determine the target resource configuration information corresponding to each user scenario category information according to a preset algorithm;
所述生成模块,用于根据所述多个用户情景类别信息以及对应的目标资源配置信息生成资源配置信息集合。The generating module is configured to generate a resource configuration information set according to the multiple user scenario category information and corresponding target resource configuration information.
所述发送模块,用于将所述资源配置信息集合发送至电子设备。The sending module is configured to send the resource configuration information set to an electronic device.
第五方面,本申请实施例提供一种存储介质,其上存储有计算机程序,当所述计算机程序在计算机上运行时,使得所述计算机执行上述的设备资源配置方法。In a fifth aspect, an embodiment of the present application provides a storage medium on which a computer program is stored, and when the computer program runs on a computer, the computer is caused to execute the above-mentioned device resource configuration method.
第六方面,本申请实施例提供一种电子设备,包括处理器和存储器,所述存储器存储有多条指令,所述处理器加载所述存储器中的指令用于执行以下步骤:In a sixth aspect, an embodiment of the present application provides an electronic device, including a processor and a memory, the memory stores a plurality of instructions, and the processor loads the instructions in the memory to perform the following steps:
接收服务器发送的资源配置信息集合,所述资源配置信息集合包括用户的情景类别信息与对应的资源配置信息;Receiving a resource configuration information set sent by a server, where the resource configuration information set includes user scenario category information and corresponding resource configuration information;
获取电子设备当前的状态信息,并根据所述状态信息识别出用户当前的情景类别信息;Acquiring current state information of the electronic device, and identifying the user's current situation category information according to the state information;
根据所述当前的情景类别信息在所述资源配置信息集合当中匹配对应的资源配置信息;Matching corresponding resource configuration information in the resource configuration information set according to the current situation category information;
根据所述资源配置信息对所述电子设备进行设置。Setting the electronic device according to the resource configuration information.
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍。显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly describe the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings that need to be used in the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
图1为本申请实施例提供的设备资源配置方法的应用场景示意图。Figure 1 is a schematic diagram of an application scenario of a device resource configuration method provided by an embodiment of the application.
图2为本申请实施例提供的设备资源配置方法的一种流程示意图。FIG. 2 is a schematic flowchart of a method for configuring device resources provided by an embodiment of the application.
图3为本申请实施例提供的设备资源配置方法的另一流程示意图。FIG. 3 is a schematic diagram of another flow of a device resource configuration method provided by an embodiment of the application.
图4为本申请实施例提供的设备资源配置方法的又一流程示意图。FIG. 4 is a schematic diagram of another flow of the device resource configuration method provided by an embodiment of the application.
图5为本申请实施例提供的设备资源配置装置的一种结构示意图。FIG. 5 is a schematic structural diagram of a device resource configuration apparatus provided by an embodiment of the application.
图6为本申请实施例提供的设备资源配置装置的另一结构示意图。FIG. 6 is a schematic diagram of another structure of the device resource configuration apparatus provided by an embodiment of the application.
图7为本申请实施例提供的设备资源配置装置的又一结构示意图。FIG. 7 is another schematic structural diagram of the device resource configuration apparatus provided by an embodiment of the application.
图8为本申请实施例提供的电子设备的结构示意图。FIG. 8 is a schematic structural diagram of an electronic device provided by an embodiment of the application.
图9为本申请实施例提供的电子设备的另一结构示意图。FIG. 9 is a schematic diagram of another structure of an electronic device provided by an embodiment of the application.
请参照图式,其中相同的组件符号代表相同的组件,本申请的原理是以实施在一适当的运算环境中来举例说明。以下的说明是基于所例示的本申请具体实施例,其不应被视为限制本申请未在此详述的其它具体实施例。Please refer to the drawings, in which the same component symbols represent the same components, and the principle of the present application is implemented in an appropriate computing environment for illustration. The following description is based on the exemplified specific embodiments of the present application, which should not be regarded as limiting other specific embodiments that are not described in detail herein.
在以下的说明中,本申请的具体实施例将参考由一部或多部计算机所执行的步骤及符号来说明,除非另有述明。因此,这些步骤及操作将有数次提到由计算机执行,本文所指的计算机执行包括了由代表了以一结构化型式中的数据的电子信号的计算机处理单元的操作。此操作转换该数据或将其维持在该计算机的内存系统中的位置处,其可重新配置或另外以本领域测试人员所熟知的方式来改变该计算机的运作。该数据所维持的数据结构为该内存的实体位置,其具有由该数据格式所定义的特定特性。但是,本申请原理以上述文字来说明,其并不代表为一种限制,本领域测试人员将可了解到以下所述的多种步骤及操作亦可实施在硬件当中。In the following description, specific embodiments of the present application will be described with reference to steps and symbols executed by one or more computers, unless otherwise stated. Therefore, these steps and operations will be mentioned several times as being executed by a computer. The computer execution referred to in this article includes the operation of a computer processing unit that represents an electronic signal of data in a structured form. This operation converts the data or maintains it in a position in the computer's memory system, which can be reconfigured or otherwise changed the operation of the computer in a manner well known to testers in the art. The data structure maintained by the data is the physical location of the memory, which has specific characteristics defined by the data format. However, the principle of this application is described in the above text, which does not represent a limitation. Testers in the field will understand that the various steps and operations described below can also be implemented in hardware.
本申请中的术语“第一”、“第二”和“第三”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或模块的过程、方法、系统、产品或设备没有限定于已列出的步骤或模块,而是某些实施例还包括没有列出的步骤或模块,或某些实施例还包括对于这些过程、方法、产品或设备固有的其它步骤或模块。The terms "first", "second" and "third" in this application are used to distinguish different objects, rather than describing a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or device that includes a series of steps or modules is not limited to the listed steps or modules, but some embodiments also include steps or modules that are not listed, or some embodiments It also includes other steps or modules inherent to these processes, methods, products, or equipment.
参考图1,图1为本申请实施例提供的设备资源配置方法的应用场景示意图。 所述设备资源配置方法应用于电子设备。所述电子设备中设置有全景感知架构。所述全景感知架构为电子设备中用于实现所述设备资源配置方法的硬件和软件的集成。Referring to FIG. 1, FIG. 1 is a schematic diagram of an application scenario of a device resource configuration method provided by an embodiment of the application. The device resource configuration method is applied to electronic devices. The electronic device is provided with a panoramic sensing architecture. The panoramic perception architecture is the integration of hardware and software used to implement the device resource configuration method in an electronic device.
其中,全景感知架构包括信息感知层、数据处理层、特征抽取层、情景建模层以及智能服务层。Among them, the panoramic perception architecture includes an information perception layer, a data processing layer, a feature extraction layer, a scenario modeling layer, and an intelligent service layer.
信息感知层用于获取电子设备自身的信息或者外部环境中的信息。所述信息感知层可以包括多个传感器。例如,所述信息感知层包括距离传感器、磁场传感器、光线传感器、加速度传感器、指纹传感器、霍尔传感器、位置传感器、陀螺仪、惯性传感器、姿态感应器、气压计、心率传感器等多个传感器。The information perception layer is used to obtain the information of the electronic device itself or the information in the external environment. The information perception layer may include multiple sensors. For example, the information sensing layer includes multiple sensors such as a distance sensor, a magnetic field sensor, a light sensor, an acceleration sensor, a fingerprint sensor, a Hall sensor, a position sensor, a gyroscope, an inertial sensor, a posture sensor, a barometer, and a heart rate sensor.
其中,距离传感器可以用于检测电子设备与外部物体之间的距离。磁场传感器可以用于检测电子设备所处环境的磁场信息。光线传感器可以用于检测电子设备所处环境的光线信息。加速度传感器可以用于检测电子设备的加速度数据。指纹传感器可以用于采集用户的指纹信息。霍尔传感器是根据霍尔效应制作的一种磁场传感器,可以用于实现电子设备的自动控制。位置传感器可以用于检测电子设备当前所处的地理位置。陀螺仪可以用于检测电子设备在各个方向上的角速度。惯性传感器可以用于检测电子设备的运动数据。姿态感应器可以用于感应电子设备的姿态信息。气压计可以用于检测电子设备所处环境的气压。心率传感器可以用于检测用户的心率信息。Among them, the distance sensor can be used to detect the distance between the electronic device and an external object. The magnetic field sensor can be used to detect the magnetic field information of the environment in which the electronic device is located. The light sensor can be used to detect the light information of the environment in which the electronic device is located. The acceleration sensor can be used to detect the acceleration data of the electronic device. The fingerprint sensor can be used to collect the user's fingerprint information. Hall sensor is a kind of magnetic field sensor made according to Hall effect, which can be used to realize automatic control of electronic equipment. The location sensor can be used to detect the current geographic location of the electronic device. Gyroscopes can be used to detect the angular velocity of electronic devices in various directions. Inertial sensors can be used to detect movement data of electronic devices. The attitude sensor can be used to sense the attitude information of the electronic device. The barometer can be used to detect the air pressure of the environment where the electronic device is located. The heart rate sensor can be used to detect the user's heart rate information.
数据处理层用于对信息感知层获取到的数据进行处理。例如,数据处理层可以对信息感知层获取到的数据进行数据清理、数据集成、数据变换、数据归约等处理。The data processing layer is used to process the data obtained by the information perception layer. For example, the data processing layer can perform data cleaning, data integration, data transformation, and data reduction on the data acquired by the information perception layer.
其中,数据清理是指对信息感知层获取到的大量数据进行清理,以剔除无效数据和重复数据。数据集成是指将信息感知层获取到的多个单维度数据集成到一个更高或者更抽象的维度,以对多个单维度的数据进行综合处理。数据变换是指对信息感知层获取到的数据进行数据类型的转换或者格式的转换等,以使变换后的数据满足处理的需求。数据归约是指在尽可能保持数据原貌的前提下,最大限度的精简数据量。Among them, data cleaning refers to cleaning up a large amount of data obtained by the information perception layer to eliminate invalid data and duplicate data. Data integration refers to the integration of multiple single-dimensional data acquired by the information perception layer into a higher or more abstract dimension to comprehensively process multiple single-dimensional data. Data transformation refers to the data type conversion or format conversion of the data acquired by the information perception layer, so that the transformed data meets the processing requirements. Data reduction means to minimize the amount of data while maintaining the original appearance of the data as much as possible.
特征抽取层用于对数据处理层处理后的数据进行特征抽取,以提取所述数据中包括的特征。提取到的特征可以反映出电子设备自身的状态或者用户的状态或者电子设备所处环境的环境状态等。The feature extraction layer is used to perform feature extraction on data processed by the data processing layer to extract features included in the data. The extracted features can reflect the state of the electronic device itself or the state of the user or the environmental state of the environment in which the electronic device is located.
其中,特征抽取层可以通过过滤法、包装法、集成法等方法来提取特征或者对提取到的特征进行处理。Among them, the feature extraction layer can extract features or process the extracted features through methods such as filtering, packaging, and integration.
过滤法是指对提取到的特征进行过滤,以删除冗余的特征数据。包装法用于对提取到的特征进行筛选。集成法是指将多种特征提取方法集成到一起,以 构建一种更加高效、更加准确的特征提取方法,用于提取特征。The filtering method refers to filtering the extracted features to delete redundant feature data. The packaging method is used to screen the extracted features. The integration method refers to the integration of multiple feature extraction methods to construct a more efficient and accurate feature extraction method for feature extraction.
情景建模层用于根据特征抽取层提取到的特征来构建模型,所得到的模型可以用于表示电子设备的状态或者用户的状态或者环境状态等。例如,情景建模层可以根据特征抽取层提取到的特征来构建关键值模型、模式标识模型、图模型、实体联系模型、面向对象模型等。The scenario modeling layer is used to construct a model based on the features extracted by the feature extraction layer, and the obtained model can be used to represent the state of the electronic device or the state of the user or the environment. For example, the scenario modeling layer can construct key value models, pattern identification models, graph models, entity connection models, object-oriented models, etc. based on the features extracted by the feature extraction layer.
智能服务层用于根据情景建模层所构建的模型为用户提供智能化的服务。例如,智能服务层可以为用户提供基础应用服务,可以为电子设备进行系统智能优化,还可以为用户提供个性化智能服务。The intelligent service layer is used to provide users with intelligent services based on the model constructed by the scenario modeling layer. For example, the intelligent service layer can provide users with basic application services, can perform system intelligent optimization for electronic devices, and can also provide users with personalized intelligent services.
此外,全景感知架构中还可以包括多种算法,每一种算法都可以用于对数据进行分析处理,所述多种算法可以构成算法库。例如,所述算法库中可以包括马尔科夫算法、隐含狄里克雷分布算法、贝叶斯分类算法、支持向量机、K均值聚类算法、K最近邻分类算法、条件随机场、残差网络、长短期记忆网络、卷积神经网络、循环神经网络等算法。In addition, the panoramic perception architecture may also include multiple algorithms, each of which can be used to analyze and process data, and the multiple algorithms can form an algorithm library. For example, the algorithm library may include Markov algorithm, implicit Dirichlet distribution algorithm, Bayesian classification algorithm, support vector machine, K-means clustering algorithm, K nearest neighbor classification algorithm, conditional random field, residual Algorithms such as difference network, long short-term memory network, convolutional neural network, recurrent neural network, etc.
本申请实施例提供一种设备资源配置方法,该设备资源配置方法的执行主体可以是本申请实施例提供的设备资源配置装置,或者集成了该设备资源配置装置的电子设备,其中该设备资源配置装置可以采用硬件或者软件的方式实现。The embodiment of the application provides a device resource configuration method. The execution subject of the device resource configuration method may be the device resource configuration device provided in the embodiment of the application, or an electronic device integrated with the device resource configuration device, wherein the device resource configuration device The device can be implemented in hardware or software.
本申请实施例将从设备资源配置装置的角度进行描述,该设备资源配置装置具体可以集成在电子设备中。该设备资源配置方法包括:接收服务器发送的资源配置信息集合,所述资源配置信息集合包括用户的情景类别信息与对应的资源配置信息;The embodiments of the present application will be described from the perspective of the device resource configuration apparatus, which may be specifically integrated in the electronic device. The device resource configuration method includes: receiving a resource configuration information set sent by a server, the resource configuration information set including user scenario category information and corresponding resource configuration information;
获取电子设备当前的状态信息,并根据所述状态信息识别出用户当前的情景类别信息;Acquiring current state information of the electronic device, and identifying the user's current situation category information according to the state information;
根据所述当前的情景类别信息在所述资源配置信息集合当中匹配对应的资源配置信息;Matching corresponding resource configuration information in the resource configuration information set according to the current situation category information;
根据所述资源配置信息对所述电子设备进行设置。Setting the electronic device according to the resource configuration information.
一实施例中,所述电子设备的状态信息包括传感器信息,根据所述状态信息识别出用户当前的情景类别信息,包括:In an embodiment, the state information of the electronic device includes sensor information, and identifying the user's current situation category information according to the state information includes:
根据预设算法模型对所述传感器信息进行处理,以得到多种情景类别信息对应的概率;Processing the sensor information according to a preset algorithm model to obtain the probabilities corresponding to various scene category information;
根据所述概率确定用户当前的情景类别信息。Determine the user's current situation category information according to the probability.
一实施例中,根据预设算法模型对所述传感器信息进行处理,包括:In an embodiment, processing the sensor information according to a preset algorithm model includes:
对所述传感器信息进行向量化处理以得到传感器向量;Performing vectorization processing on the sensor information to obtain a sensor vector;
对所述传感器向量进行叠加以得到传感器张量;Superimpose the sensor vectors to obtain a sensor tensor;
根据所述预设算法模型对所述传感器张量进行处理。The sensor tensor is processed according to the preset algorithm model.
一实施例中,根据所述资源配置信息对所述电子设备进行设置,包括:In an embodiment, setting the electronic device according to the resource configuration information includes:
获取所述资源配置信息所包含的设备资源以及所述设备资源对应的目标参数;Acquiring device resources included in the resource configuration information and target parameters corresponding to the device resources;
根据所述目标参数设置所述设备资源。The device resource is set according to the target parameter.
一实施例中,根据所述目标参数设置所述设备资源,包括:In an embodiment, setting the device resource according to the target parameter includes:
判断所述设备资源当前参数与所述目标参数是否相同;Determine whether the current parameter of the device resource is the same as the target parameter;
若否,则将所述设备资源的当前参数调整为目标参数。If not, the current parameter of the device resource is adjusted to the target parameter.
请参阅图2,图2为本申请实施例提供的设备资源配置方法的流程示意图。本申请实施例提供的设备资源配置方法应用于电子设备,具体流程可以如下:Please refer to FIG. 2. FIG. 2 is a schematic flowchart of a device resource configuration method provided by an embodiment of the application. The device resource configuration method provided by the embodiment of the application is applied to an electronic device, and the specific process may be as follows:
步骤101,接收服务器发送的资源配置信息集合,资源配置信息集合包括用户的情景类别信息与对应的资源配置信息。Step 101: Receive a resource configuration information set sent by a server, where the resource configuration information set includes user scenario category information and corresponding resource configuration information.
在一实施例中,服务器接收多个用户发送的用户的情景类别信息与对应的资源配置信息,通过学习得到不同的情景类别信息下对应的最佳资源配置信息,然后发送至电子设备,由电子设备根据当前的用户情景类别信息选择对应的最佳资源配置信息。In one embodiment, the server receives user scenario category information and corresponding resource configuration information sent by multiple users, obtains the optimal resource configuration information corresponding to different scenario category information through learning, and then sends it to the electronic device, and the electronic The device selects the corresponding best resource configuration information according to the current user scenario category information.
在一实施例中,上述用户情景类别信息可以为用户的状态信息,比如包括睡眠、办公、旅游、游戏、驾驶、健身等,进一步的,上述情景类别信息还可以包括位置信息,比如在家或是在工作地点等,具体可以通过分析用户的历史位置信息确定家和工作地点,在此不做进一步限定。需要说明的是,上述用户情景类别信息之间相互不冲突,即用户可以同时满足多个上述用户情景类别信息,比如,用户在家里打游戏,或是用户在工作地点办公等。其中,每个用户情景类别信息对应一种资源配置信息。In an embodiment, the above-mentioned user situation category information may be the user's state information, such as sleep, office, travel, games, driving, fitness, etc. Further, the above-mentioned situation category information may also include location information, such as at home or In the work place, etc., the home and work place can be determined by analyzing the historical location information of the user, which is not further limited here. It should be noted that the above-mentioned user situation category information does not conflict with each other, that is, the user can satisfy multiple above-mentioned user situation category information at the same time, for example, the user plays games at home, or the user works at the work place. Among them, each user scenario category information corresponds to a kind of resource configuration information.
在一实施例中,上述资源配置信息可以包括终端中设备资源的设置信息,该设备资源包括诸如CPU(Central Processing Unit,中央处理器)、GPU(Graphics Processing Unit,图形处理器)、内存、网速等等,其中,不同的资源配置方案会给电子设备带来不同的性能以及功耗。其中,上述资源配置信息还可以包括电子设备的一些设置信息,比如GPS设置、蓝牙设置、NFC设置、WIFI设置等等。比如用户的情景类别信息包括在家时,对应的资源配置信息可以包括打开WIFI并关闭移动网络,若用户的情景类别信息包括旅游时,对应的资源配置信息可以包括打开GPS等。In an embodiment, the foregoing resource configuration information may include setting information of device resources in the terminal, and the device resources include information such as CPU (Central Processing Unit, central processing unit), GPU (Graphics Processing Unit), memory, and network. Speed and so on, among them, different resource allocation schemes will bring different performance and power consumption to electronic devices. The above resource configuration information may also include some setting information of the electronic device, such as GPS settings, Bluetooth settings, NFC settings, WIFI settings, and so on. For example, the user's situation category information includes when at home, the corresponding resource configuration information may include turning on WIFI and turning off the mobile network. If the user's situation category information includes traveling, the corresponding resource configuration information may include turning on GPS.
步骤102,获取电子设备当前的状态信息,并根据状态信息识别出用户当前的情景类别信息。Step 102: Acquire current state information of the electronic device, and identify the user's current situation category information according to the state information.
在一实施例中,上述电子设备当前的状态信息可以包括电子设备的系统运行信息和传感器信息等等。其中,电子设备内置有功能不一的传感器,这些传 感器能够随时检测电子设备当前所处的状态。作为本申请的一个实施例,可以通过加速度传感器(G-Sensor)和陀螺仪检测电子设备的运动状态。其中加速度传感器可以是三轴线性加速度传感器,用于检测电子设备三个互相正交的轴向上的线性加速度。陀螺仪则用于检测电子设备三个互相正交的轴向上转动的速度。如当加速度传感器和陀螺仪在单位时间内检测到的数值没有变化,则认为电子设备处于静止状态。只要加速度传感器和陀螺仪在单位时间内有一个数值发生变化,则可以认为电子设备处于运动状态,然后根据状态信息识别出用户当前的情景类别信息,比如在电子设备运动时,可以根据当前的速度确定用户是处于步行状态还是驾车状态。此外,电子设备还可以通过光传感器检测周围环境光的强度。关于加速度传感器、陀螺仪以及光传感器的工作原理可参考现有技术,在此不作赘述。In an embodiment, the current state information of the above electronic device may include system operation information and sensor information of the electronic device, and so on. Among them, the electronic device has built-in sensors with different functions, and these sensors can detect the current state of the electronic device at any time. As an embodiment of the present application, the motion state of the electronic device can be detected by an acceleration sensor (G-Sensor) and a gyroscope. The acceleration sensor may be a three-axis linear acceleration sensor, which is used to detect linear accelerations in three mutually orthogonal axes of the electronic device. The gyroscope is used to detect the upward rotation speed of the three mutually orthogonal axes of the electronic device. If the value detected by the acceleration sensor and the gyroscope within a unit time does not change, the electronic device is considered to be in a static state. As long as a value of the acceleration sensor and gyroscope changes in a unit of time, the electronic device can be considered to be in motion, and then the user’s current situation category information can be identified based on the status information. For example, when the electronic device is in motion, the current speed can be Determine whether the user is walking or driving. In addition, the electronic device can also detect the intensity of ambient light through the light sensor. Regarding the working principles of the acceleration sensor, the gyroscope, and the light sensor, reference may be made to the prior art, which will not be repeated here.
在一实施例中,在获取到电子设备的状态信息的基础上,还可以进一步获取环境信息和用户信息,环境信息可以包括天气、温度、时间等,用户信息可以包括年龄、性别、行为记录等,通过电子设备当前的状态信息以及上述环境信息和用户信息,综合识别出用户当前的情景类别信息,进一步提升识别的准确性。In one embodiment, on the basis of obtaining the status information of the electronic device, environmental information and user information may be further obtained. The environmental information may include weather, temperature, time, etc., and the user information may include age, gender, behavior records, etc. , Through the current state information of the electronic device and the aforementioned environmental information and user information, the user’s current situation category information is comprehensively identified, which further improves the accuracy of recognition.
在一实施例中,还可以在获取到电子设备当前的状态信息后,将该信息输入到情景类别预测模型,对用户的情景类别信息进行预测。其中,上述情景类别预测模型的输出结果可以为多种情景类别信息以及分别对应的概率,可以选取概率最高的作为预测结果。In an embodiment, after obtaining the current state information of the electronic device, the information may be input into the scene category prediction model to predict the user's scene category information. Among them, the output result of the above scenario category prediction model may be multiple scenarios and corresponding probabilities, and the highest probability may be selected as the prediction result.
步骤103,根据当前的情景类别信息在资源配置信息集合当中匹配对应的资源配置信息。Step 103: Match the corresponding resource configuration information in the resource configuration information set according to the current situation category information.
在一实施例中,在获取到用户当前的情景类别信息后,在接收服务器发送的资源配置信息集合当中查找与当前情景类别信息相同的样本,然后获取该样本对应的资源配置信息。In one embodiment, after obtaining the user's current scenario category information, the resource configuration information set sent by the receiving server is searched for a sample that is the same as the current scenario category information, and then the resource configuration information corresponding to the sample is obtained.
需要说明的是,由于从服务器获取到的资源配置信息集合包含了许多用户的情景类别信息与对应的资源配置信息,而其中一些情景类别信息从未或极少与当前用户符合,比如,当前用户基本不玩游戏,则可以将该情景类别信息从资源配置信息集合当中删除,从而提升匹配效率。具体可以根据用户在预设时间段内的使用信息,根据使用频率确定用户常用的情景类别信息,然后再获取到服务器发送的资源配置信息集合之后,只保留其中上述的常用情景类别信息以及对应的资源配置信息即可。It should be noted that, because the resource configuration information collection obtained from the server contains many user scenario category information and corresponding resource configuration information, and some of the scenario category information has never or rarely matched the current user, for example, the current user If you basically do not play games, you can delete the situation category information from the resource configuration information set, thereby improving the matching efficiency. Specifically, the user’s commonly used scenario category information can be determined according to the user’s usage information within a preset time period and the frequency of use, and then after the resource configuration information collection sent by the server is obtained, only the aforementioned common scenario category information and corresponding Resource configuration information is sufficient.
步骤104,根据资源配置信息对电子设备进行设置。Step 104: Set the electronic device according to the resource configuration information.
具体的,根据上述资源配置信息设置电子设备中相关参数,比如限制CPU 频率、限制当前网速、打开WIFI开关等等。在一实施例中,在根据资源配置信息对电子设备进行设置之前,还可以根据该资源配置信息包含的设置信息生成提示信息,以供用户进行确认选择,可以避免误操作。Specifically, related parameters in the electronic device are set according to the above resource configuration information, such as limiting the CPU frequency, limiting the current network speed, turning on the WIFI switch, and so on. In an embodiment, before setting the electronic device according to the resource configuration information, prompt information may be generated according to the setting information contained in the resource configuration information for the user to confirm the selection, which can avoid misoperation.
比如,电子设备当前的情景类别信息包括在家这个场景时,对应的资源配置信息可以包括打开WIFI开关,此时电子设备会自动连接家里的网络热点,在连接完成后,还可以关闭电子设备的移动网络,以节省用户流量。其中,在打开WIFI开关之前,可以以弹窗的形式提示用户,由用户选择是否打开WIFI开关,比如当电子设备的移动网络网速高于连接WIFI后的网速且移动网络的剩余流量较多时,用户可以选择不打开WIFI开关,继续使用移动网络数据,为用户提供了更多的选择。For example, when the current situation category information of the electronic device includes the scene at home, the corresponding resource configuration information can include turning on the WIFI switch. At this time, the electronic device will automatically connect to the home network hotspot. After the connection is completed, the mobile of the electronic device can also be turned off. Network to save user traffic. Among them, before turning on the WIFI switch, the user can be prompted in the form of a pop-up window to choose whether to turn on the WIFI switch. For example, when the mobile network speed of the electronic device is higher than the network speed after connecting to the WIFI and the remaining mobile network traffic is large , Users can choose not to turn on the WIFI switch and continue to use mobile network data, which provides users with more choices.
由上可知,本申请实施例提供的设备资源配置方法可以接收服务器发送的资源配置信息集合,资源配置信息集合包括用户的情景类别信息与对应的资源配置信息,获取电子设备当前的状态信息,并根据状态信息识别出用户当前的情景类别信息,根据当前的情景类别信息在资源配置信息集合当中匹配对应的资源配置信息,根据资源配置信息对电子设备进行设置。本申请实施例可以智能识别当前的情景类别信息,并根据情景类别信息生成相应的资源配置方案以对电子设备进行设置,能够显著提升分配设备资源的准确性,以及资源利用的针对性。It can be seen from the above that the device resource configuration method provided by the embodiment of the present application can receive the resource configuration information set sent by the server. The resource configuration information set includes the user's situation category information and corresponding resource configuration information, obtains the current state information of the electronic device, and Identify the user's current situation category information according to the status information, match the corresponding resource configuration information in the resource configuration information set according to the current situation category information, and set the electronic device according to the resource configuration information. The embodiments of the present application can intelligently identify the current situation category information, and generate a corresponding resource configuration scheme based on the situation category information to set the electronic device, which can significantly improve the accuracy of device resource allocation and the pertinence of resource utilization.
下面将在上述实施例描述的方法基础上,对本申请的清理方法做进一步介绍。参阅图3,图3为本申请实施例提供的设备资源配置方法的另一流程示意图,该设备资源配置方法包括:On the basis of the method described in the foregoing embodiment, the cleaning method of the present application will be further introduced below. Referring to FIG. 3, FIG. 3 is a schematic diagram of another process of a device resource configuration method provided by an embodiment of the application. The device resource configuration method includes:
步骤201,接收服务器发送的资源配置信息集合,资源配置信息集合包括用户的情景类别信息与对应的资源配置信息。Step 201: Receive a resource configuration information set sent by a server, where the resource configuration information set includes user scenario category information and corresponding resource configuration information.
在一实施例中,服务器接收多个用户发送的用户的情景类别信息与对应的资源配置信息,通过学习得到不同的情景类别信息下对应的最佳资源配置信息,然后发送至电子设备,由电子设备根据当前的用户情景类别信息选择对应的最佳资源配置信息。In one embodiment, the server receives user scenario category information and corresponding resource configuration information sent by multiple users, obtains the optimal resource configuration information corresponding to different scenario category information through learning, and then sends it to the electronic device, and the electronic The device selects the corresponding best resource configuration information according to the current user scenario category information.
在一实施例中,上述用户情景类别信息可以为用户的状态信息,比如包括睡眠、办公、旅游、游戏、驾驶、健身等,进一步的,上述情景类别信息还可以包括位置信息,比如在家或是在工作地点等,具体可以通过分析用户的历史位置信息确定家和工作地点,在此不做进一步限定。需要说明的是,上述用户情景类别信息之间相互不冲突,即用户可以同时满足多个上述用户情景类别信息,比如,用户在家里打游戏,或是用户在工作地点办公等。其中,每个用户情景类别信息对应一种资源配置信息。In an embodiment, the above-mentioned user situation category information may be the user's state information, such as sleep, office, travel, games, driving, fitness, etc. Further, the above-mentioned situation category information may also include location information, such as at home or In the work place, etc., the home and work place can be determined by analyzing the historical location information of the user, which is not further limited here. It should be noted that the above-mentioned user situation category information does not conflict with each other, that is, the user can satisfy multiple above-mentioned user situation category information at the same time, for example, the user plays games at home, or the user works at the work place. Among them, each user scenario category information corresponds to a kind of resource configuration information.
步骤202,获取电子设备当前的传感器信息,根据预设算法模型对传感器信息进行处理,以得到多种情景类别信息对应的概率。Step 202: Acquire current sensor information of the electronic device, and process the sensor information according to a preset algorithm model to obtain probabilities corresponding to various types of scene information.
步骤203,根据概率确定用户当前的情景类别信息。Step 203: Determine the user's current scene category information according to the probability.
比如,电子设备内置有功能不一的传感器,这些传感器能够随时检测电子设备当前所处的状态。作为本申请的一个实施例,可以获取电子设备当前的传感器信息,然后输入预设的预测模型,以得到多种情景类别信息对应的概率,根据概率确定用户当前的情景类别信息。比如为概率最大的情景类别信息。For example, electronic devices have built-in sensors with different functions, and these sensors can detect the current state of the electronic device at any time. As an embodiment of the present application, the current sensor information of the electronic device can be obtained, and then a preset prediction model can be input to obtain the probabilities corresponding to various scene category information, and the user's current scene category information can be determined according to the probability. For example, the situation category information with the highest probability.
在一实施例中,上述根据预设算法模型对所述传感器信息进行处理,包括:In an embodiment, the foregoing processing of the sensor information according to a preset algorithm model includes:
对所述传感器信息进行向量化处理以得到传感器向量;Performing vectorization processing on the sensor information to obtain a sensor vector;
对所述传感器向量进行叠加以得到传感器张量;Superimpose the sensor vectors to obtain a sensor tensor;
根据所述预设算法模型对所述传感器张量进行处理。The sensor tensor is processed according to the preset algorithm model.
在一实施例中,可以通过加速度传感器(G-Sensor)和陀螺仪检测电子设备的运动状态。其中加速度传感器可以是三轴线性加速度传感器,用于检测电子设备三个互相正交的轴向上的线性加速度。陀螺仪则用于检测电子设备三个互相正交的轴向上转动的速度。如当加速度传感器和陀螺仪在单位时间内检测到的数值没有变化,则认为电子设备处于静止状态。只要加速度传感器和陀螺仪在单位时间内有一个数值发生变化,则可以认为电子设备处于运动状态,然后根据状态信息识别出用户当前的情景类别信息。此外,电子设备还可以通过光传感器检测周围环境光的强度。关于加速度传感器、陀螺仪以及光传感器的工作原理可参考现有技术,在此不作赘述。In an embodiment, the motion state of the electronic device can be detected by an acceleration sensor (G-Sensor) and a gyroscope. The acceleration sensor may be a three-axis linear acceleration sensor, which is used to detect linear accelerations in three mutually orthogonal axes of the electronic device. The gyroscope is used to detect the upward rotation speed of the three mutually orthogonal axes of the electronic device. If the value detected by the acceleration sensor and the gyroscope within a unit time does not change, the electronic device is considered to be in a static state. As long as a value of the acceleration sensor and the gyroscope changes within a unit time, the electronic device can be considered to be in a motion state, and then the user's current situation category information can be identified according to the state information. In addition, the electronic device can also detect the intensity of ambient light through the light sensor. Regarding the working principles of the acceleration sensor, the gyroscope, and the light sensor, reference may be made to the prior art, which will not be repeated here.
步骤204,根据当前的情景类别信息在资源配置信息集合当中匹配对应的资源配置信息。Step 204: Match the corresponding resource configuration information in the resource configuration information set according to the current situation category information.
在一实施例中,在获取到用户当前的情景类别信息后,在接收服务器发送的资源配置信息集合当中查找与当前情景类别信息相同的样本,然后获取该样本对应的资源配置信息。In one embodiment, after obtaining the user's current scenario category information, the resource configuration information set sent by the receiving server is searched for a sample that is the same as the current scenario category information, and then the resource configuration information corresponding to the sample is obtained.
其中,上述资源配置信息可以包括终端中设备资源的设置信息,该设备资源包括诸如CPU、GPU、内存、网速等等,其中,不同的资源配置方案会给电子设备带来不同的性能以及功耗。其中,上述资源配置信息还可以包括电子设备的一些设置信息,比如GPS设置、蓝牙设置、NFC设置、WIFI设置等等。Among them, the above resource configuration information may include the setting information of the device resources in the terminal. The device resources include such as CPU, GPU, memory, network speed, etc., among which, different resource configuration schemes will bring different performance and functions to the electronic device. Consumption. The above resource configuration information may also include some setting information of the electronic device, such as GPS settings, Bluetooth settings, NFC settings, WIFI settings, and so on.
步骤205,获取资源配置信息所包含的设备资源以及设备资源对应的目标参数。Step 205: Obtain device resources included in the resource configuration information and target parameters corresponding to the device resources.
步骤206,根据目标参数设置设备资源。Step 206: Set the device resource according to the target parameter.
具体的,根据上述资源配置信息设置相关的设备资源以及对应的目标参数,比如设置CPU频率为2.5GHz、限制当前网速为1M/s、设置屏幕的分辨率为 2220×1080等等。上述设备资源还可以为电子设备中的设置,其对应的目标参数可以为设置状态,比如打开WIFI开关,关闭蓝牙等等。Specifically, set relevant device resources and corresponding target parameters according to the above resource configuration information, such as setting the CPU frequency to 2.5GHz, limiting the current network speed to 1M/s, setting the screen resolution to 2220×1080, and so on. The aforementioned device resource may also be a setting in an electronic device, and its corresponding target parameter may be a setting state, such as turning on the WIFI switch, turning off Bluetooth, and so on.
在一实施例中,根据所述目标参数设置所述设备资源的步骤可以包括:In an embodiment, the step of setting the device resource according to the target parameter may include:
判断所述设备资源当前参数与所述目标参数是否相同;Determine whether the current parameter of the device resource is the same as the target parameter;
若否,则将所述设备资源的当前参数调整为目标参数。If not, the current parameter of the device resource is adjusted to the target parameter.
在一实施例中,在根据资源配置信息对电子设备进行设置之前,还可以根据该资源配置信息包含的设置信息生成提示信息,以供用户进行确认选择,可以避免误操作。In an embodiment, before setting the electronic device according to the resource configuration information, prompt information may be generated according to the setting information contained in the resource configuration information for the user to confirm the selection, which can avoid misoperation.
由上可知,本申请实施例提供的设备资源配置方法可以接收服务器发送的资源配置信息集合,资源配置信息集合包括用户的情景类别信息与对应的资源配置信息,获取电子设备当前的传感器信息,根据预设算法模型对传感器信息进行处理,以得到多种情景类别信息对应的概率,根据概率确定用户当前的情景类别信息,根据当前的情景类别信息在资源配置信息集合当中匹配对应的资源配置信息,获取资源配置信息所包含的设备资源以及设备资源对应的目标参数,根据目标参数设置设备资源。本申请实施例可以智能识别当前的情景类别信息,并根据情景类别信息生成相应的资源配置方案以对电子设备进行设置,能够显著提升分配设备资源的准确性,以及资源利用的针对性。It can be seen from the above that the device resource configuration method provided by the embodiment of the present application can receive the resource configuration information set sent by the server. The resource configuration information set includes the user's situation category information and corresponding resource configuration information, and obtains the current sensor information of the electronic device according to The preset algorithm model processes the sensor information to obtain the probabilities corresponding to various scene category information, determines the user's current scene category information according to the probability, and matches the corresponding resource configuration information in the resource configuration information set according to the current situation category information. Obtain the device resource included in the resource configuration information and the target parameter corresponding to the device resource, and set the device resource according to the target parameter. The embodiments of the present application can intelligently identify the current situation category information, and generate a corresponding resource configuration scheme based on the situation category information to set the electronic device, which can significantly improve the accuracy of device resource allocation and the pertinence of resource utilization.
本申请实施例还提供一种设备资源配置方法,该设备资源配置装置具体可以集成在服务器中,该设备资源配置方法包括:The embodiment of the present application also provides a device resource configuration method. The device resource configuration device may be specifically integrated in a server. The device resource configuration method includes:
接收多个电子设备发送的用户情景类别信息与对应的资源配置信息;Receiving user scenario category information and corresponding resource configuration information sent by multiple electronic devices;
根据预设算法确定每个所述用户情景类别信息所对应的目标资源配置信息;Determining the target resource configuration information corresponding to each of the user scenario category information according to a preset algorithm;
根据所述多个用户情景类别信息以及对应的目标资源配置信息生成资源配置信息集合;Generating a resource configuration information set according to the multiple user scenario category information and corresponding target resource configuration information;
将所述资源配置信息集合发送至电子设备。Sending the resource configuration information set to the electronic device.
在一实施例中,所述预设算法为协同过滤算法。In an embodiment, the preset algorithm is a collaborative filtering algorithm.
请参阅图4,图4为本申请实施例提供的设备资源配置方法的又一流程示意图,该设备资源配置方法包括:Please refer to FIG. 4. FIG. 4 is another flowchart of the device resource configuration method provided by an embodiment of the application. The device resource configuration method includes:
步骤301,接收多个电子设备发送的用户情景类别信息与对应的资源配置信息。Step 301: Receive user context category information and corresponding resource configuration information sent by multiple electronic devices.
其中,上述用户情景类别信息可以为用户的状态信息,比如包括睡眠、办公、旅游、游戏、驾驶、健身等,进一步的,上述情景类别信息还可以包括位置信息,比如在家或是在工作地点等,具体可以通过分析用户的历史位置信息确定家和工作地点,在此不做进一步限定。上述资源配置信息可以包括终端中 设备资源的设置信息,该设备资源包括诸如CPU、GPU、内存、网速等等,其中,不同的资源配置方案会给电子设备带来不同的性能以及功耗。其中,上述资源配置信息还可以包括电子设备的一些设置信息,比如GPS设置、蓝牙设置、NFC设置、WIFI设置等等。Among them, the above-mentioned user situation category information may be the user's state information, such as sleep, office, travel, games, driving, fitness, etc. Further, the above-mentioned situation category information may also include location information, such as at home or at work, etc. , The home and work location can be determined by analyzing the user’s historical location information, which is not further limited here. The above resource configuration information may include setting information of device resources in the terminal. The device resources include CPU, GPU, memory, network speed, etc., where different resource configuration schemes will bring different performance and power consumption to electronic devices. The above resource configuration information may also include some setting information of the electronic device, such as GPS settings, Bluetooth settings, NFC settings, WIFI settings, and so on.
步骤302,根据预设算法确定每个用户情景类别信息所对应的目标资源配置信息。Step 302: Determine target resource configuration information corresponding to each user scenario category information according to a preset algorithm.
具体的,服务器接收到多个电子设备上传的情景类别信息与对应的资源配置信息,而由于每个用户使用电子设备的习惯均不相同,在同一情景类别下,不同的用户可能会对设备资源进行不同的分配,因此需要在用户大数据当中确定每个用户情景类别信息所对应的目标资源配置信息。Specifically, the server receives the scenario category information uploaded by multiple electronic devices and the corresponding resource configuration information. Since each user has a different habit of using electronic devices, in the same scenario category, different users may be For different allocations, it is necessary to determine the target resource configuration information corresponding to each user scenario category information in the user big data.
在一实施例中,可以使用协同过滤算法确定每个用户情景类别信息所对应的目标资源配置信息。其中,协同过滤算法通过对用户历史行为数据的挖掘发现用户的偏好,基于不同的偏好对用户进行群组划分并推荐品味相似的方案。即本实施例将大部分用户在一情景类别信息下设置的资源配置信息确定为目标资源配置信息。In an embodiment, a collaborative filtering algorithm may be used to determine the target resource configuration information corresponding to each user context category information. Among them, the collaborative filtering algorithm discovers user preferences by mining user historical behavior data, divides users into groups based on different preferences, and recommends solutions with similar tastes. That is, in this embodiment, the resource configuration information set by most users under a situation category information is determined as the target resource configuration information.
步骤303,根据多个用户情景类别信息以及对应的目标资源配置信息生成资源配置信息集合。Step 303: Generate a resource configuration information set according to multiple user scenario category information and corresponding target resource configuration information.
其中,服务器接收多个用户发送的用户的情景类别信息与对应的资源配置信息,通过学习得到不同的情景类别信息下对应的最佳资源配置信息,并生成资源配置信息集合。Wherein, the server receives user scenario category information and corresponding resource configuration information sent by multiple users, obtains corresponding optimal resource configuration information under different scenario category information through learning, and generates a resource configuration information set.
步骤304,将资源配置信息集合发送至电子设备。Step 304: Send the resource configuration information set to the electronic device.
在一实施例中,由于从服务器获取到的资源配置信息集合包含了许多用户的情景类别信息与对应的资源配置信息,而其中一些情景类别信息从未或极少与当前用户符合,比如,当前用户基本不玩游戏,则可以将该情景类别信息以及对应的目标资源配置信息从资源配置信息集合当中删除,然后将删除后的资源配置信息集合发送至电子设备,由电子设备进行匹配,可以进一步提升匹配效率。In one embodiment, because the resource configuration information set obtained from the server contains many user scenario category information and corresponding resource configuration information, some of the scenario category information never or rarely matches the current user, for example, the current user If the user basically does not play games, he can delete the situation category information and the corresponding target resource configuration information from the resource configuration information collection, and then send the deleted resource configuration information collection to the electronic device, and the electronic device can perform matching. Improve matching efficiency.
由上可知,本申请实施例提供的设备资源配置方法可以接收多个电子设备发送的用户情景类别信息与对应的资源配置信息,根据预设算法确定每个用户情景类别信息所对应的目标资源配置信息,根据多个用户情景类别信息以及对应的目标资源配置信息生成资源配置信息集合,将资源配置信息集合发送至电子设备。本申请实施例可以通过学习多个用户的情景类别信息与对应的资源配置信息,学习出每个情景类别信息对应的最佳资源配置信息,生成最佳的资源配置方案。It can be seen from the above that the device resource configuration method provided by the embodiment of the present application can receive user context category information and corresponding resource configuration information sent by multiple electronic devices, and determine the target resource configuration corresponding to each user context category information according to a preset algorithm Information, generating a resource configuration information set according to multiple user scenario category information and corresponding target resource configuration information, and sending the resource configuration information set to the electronic device. The embodiment of the present application can learn the best resource configuration information corresponding to each scenario category information by learning the scenario category information of multiple users and the corresponding resource configuration information, and generate the best resource configuration plan.
请参阅图5,图5为本申请实施例提供的设备资源配置装置的一种结构示意图。其中该设备资源配置装置40应用于电子设备,包括获取模块401、识别模块402、匹配模块403以及设置模块404;Please refer to FIG. 5, which is a schematic structural diagram of a device resource configuration apparatus provided by an embodiment of the application. The device resource configuration device 40 is applied to electronic devices, and includes an acquisition module 401, an identification module 402, a matching module 403, and a setting module 404;
所述获取模块401,用于接收服务器发送的资源配置信息集合,所述资源配置信息集合包括用户的情景类别信息与对应的资源配置信息;The obtaining module 401 is configured to receive a resource configuration information set sent by a server, where the resource configuration information set includes user scenario category information and corresponding resource configuration information;
所述识别模块402,用于获取电子设备当前的状态信息,并根据所述状态信息识别出用户当前的情景类别信息;The identification module 402 is used to obtain the current state information of the electronic device, and identify the current situation category information of the user according to the state information;
所述匹配模块403,用于根据所述当前的情景类别信息在所述资源配置信息集合当中匹配对应的资源配置信息;The matching module 403 is configured to match corresponding resource configuration information in the resource configuration information set according to the current situation category information;
所述设置模块404,用于根据所述资源配置信息对所述电子设备进行设置。The setting module 404 is configured to set the electronic device according to the resource configuration information.
在一实施例中,请参阅图6,图6为本申请实施例提供的设备资源配置装置40的另一种结构示意图,其中,所述电子设备的状态信息包括传感器信息,所述识别模块402包括:处理子模块4021和确定子模块4022;In one embodiment, please refer to FIG. 6. FIG. 6 is a schematic diagram of another structure of the device resource configuration apparatus 40 provided by an embodiment of the application, wherein the state information of the electronic device includes sensor information, and the identification module 402 Including: a processing sub-module 4021 and a determining sub-module 4022;
所述处理子模块4021,用于根据预设算法模型对所述传感器信息进行处理,以得到多种情景类别信息对应的概率;The processing sub-module 4021 is configured to process the sensor information according to a preset algorithm model to obtain the probabilities corresponding to various types of scene information;
所述确定子模块4022,用于根据所述概率确定用户当前的情景类别信息。The determining sub-module 4022 is configured to determine the current situation category information of the user according to the probability.
在一实施例中,所述处理子模块4021,具体用于对所述传感器信息进行向量化处理以得到传感器向量,对所述传感器向量进行叠加以得到传感器张量,根据所述预设算法模型对所述传感器张量进行处理。In an embodiment, the processing sub-module 4021 is specifically configured to perform vectorization processing on the sensor information to obtain a sensor vector, and superimpose the sensor vector to obtain a sensor tensor, according to the preset algorithm model Process the sensor tensor.
在一实施例中,所述设置模块404包括:获取子模块4041和设置子模块4042;In an embodiment, the setting module 404 includes: an obtaining submodule 4041 and a setting submodule 4042;
所述获取子模块4041,用于获取所述资源配置信息所包含的设备资源以及所述设备资源对应的目标参数;The acquiring submodule 4041 is configured to acquire the device resources included in the resource configuration information and the target parameters corresponding to the device resources;
所述设置子模块4042,用于根据所述目标参数设置所述设备资源。The setting submodule 4042 is configured to set the device resource according to the target parameter.
在一实施例中,所述设置子模块4042,具体用于判断所述设备资源当前参数与所述目标参数是否相同,若否,则将所述设备资源的当前参数调整为目标参数。In an embodiment, the setting submodule 4042 is specifically configured to determine whether the current parameter of the device resource is the same as the target parameter, and if not, adjust the current parameter of the device resource to the target parameter.
由上述可知,本申请实施例的设备资源配置装置可以接收服务器发送的资源配置信息集合,资源配置信息集合包括用户的情景类别信息与对应的资源配置信息,获取电子设备当前的状态信息,并根据状态信息识别出用户当前的情景类别信息,根据当前的情景类别信息在资源配置信息集合当中匹配对应的资源配置信息,根据资源配置信息对电子设备进行设置。本申请实施例可以智能识别当前的情景类别信息,并根据情景类别信息生成相应的资源配置方案以对电子设备进行设置,能够显著提升分配设备资源的准确性,以及资源利用的针 对性。It can be seen from the above that the device resource configuration apparatus of the embodiment of the present application can receive the resource configuration information set sent by the server. The resource configuration information set includes the user's situation category information and corresponding resource configuration information, obtains the current state information of the electronic device, and obtains The status information identifies the user's current situation category information, matches the corresponding resource configuration information in the resource configuration information set according to the current situation category information, and sets the electronic device according to the resource configuration information. The embodiments of the present application can intelligently identify the current situation category information, and generate a corresponding resource allocation plan based on the situation category information to set the electronic device, which can significantly improve the accuracy of device resource allocation and the specificity of resource utilization.
请参阅图7,图7为本申请实施例提供的设备资源配置装置的又一种结构示意图,其中该设备资源配置装置50应用于服务器,包括接收模块501、确定模块502、生成模块503以及发送模块504;Please refer to FIG. 7. FIG. 7 is another schematic structural diagram of the device resource configuration apparatus provided by an embodiment of the application. The device resource configuration apparatus 50 is applied to a server and includes a receiving module 501, a determining module 502, a generating module 503, and a sending module. Module 504;
所述接收模块501,用于接收多个电子设备发送的用户情景类别信息与对应的资源配置信息;The receiving module 501 is configured to receive user context category information and corresponding resource configuration information sent by multiple electronic devices;
所述确定模块502,用于根据预设算法确定每个所述用户情景类别信息所对应的目标资源配置信息;The determining module 502 is configured to determine the target resource configuration information corresponding to each of the user context category information according to a preset algorithm;
所述生成模块503,用于根据所述多个用户情景类别信息以及对应的目标资源配置信息生成资源配置信息集合。The generating module 503 is configured to generate a resource configuration information set according to the multiple user scenario category information and corresponding target resource configuration information.
所述发送模块504,用于将所述资源配置信息集合发送至电子设备。The sending module 504 is configured to send the resource configuration information set to an electronic device.
在一实施例中,所述预设算法为协同过滤算法。In an embodiment, the preset algorithm is a collaborative filtering algorithm.
由上述可知,本申请实施例的设备资源配置装置可以接收多个电子设备发送的用户情景类别信息与对应的资源配置信息,根据预设算法确定每个用户情景类别信息所对应的目标资源配置信息,根据多个用户情景类别信息以及对应的目标资源配置信息生成资源配置信息集合,将资源配置信息集合发送至电子设备。本申请实施例可以通过学习多个用户的情景类别信息与对应的资源配置信息,学习出每个情景类别信息对应的最佳资源配置信息,生成最佳的资源配置方案。It can be seen from the above that the device resource configuration apparatus of the embodiment of the present application can receive user context category information and corresponding resource configuration information sent by multiple electronic devices, and determine the target resource configuration information corresponding to each user context category information according to a preset algorithm , Generate a resource configuration information set according to multiple user scenario category information and corresponding target resource configuration information, and send the resource configuration information set to the electronic device. The embodiment of the present application can learn the best resource configuration information corresponding to each scenario category information by learning the scenario category information of multiple users and the corresponding resource configuration information, and generate the best resource configuration plan.
本申请实施例中,设备资源配置装置与上文实施例中的设备资源配置方法属于同一构思,在设备资源配置装置上可以运行设备资源配置方法实施例中提供的任一方法,其具体实现过程详见设备资源配置方法的实施例,此处不再赘述。In this embodiment of the application, the device resource configuration device belongs to the same concept as the device resource configuration method in the above embodiment. Any method provided in the device resource configuration method embodiment can be run on the device resource configuration device, and its specific implementation process For details, refer to the embodiment of the device resource configuration method, which will not be repeated here.
本文所使用的术语“模块”可看作为在该运算系统上执行的软件对象。本文所述的不同组件、模块、引擎及服务可看作为在该运算系统上的实施对象。而本文所述的装置及方法可以以软件的方式进行实施,当然也可在硬件上进行实施,均在本申请保护范围之内。The term "module" used herein can be regarded as a software object executed on the operating system. The different components, modules, engines, and services described in this article can be regarded as implementation objects on the computing system. The devices and methods described herein can be implemented in the form of software, or of course, can also be implemented on hardware, and they are all within the protection scope of the present application.
本申请实施例还提供一种存储介质,其上存储有计算机程序,当所述计算机程序在计算机上运行时,使得所述计算机执行上述的设备资源配置方法。An embodiment of the present application also provides a storage medium on which a computer program is stored, and when the computer program runs on a computer, the computer is caused to execute the above-mentioned device resource configuration method.
本申请实施例还提供一种电子设备,如平板电脑、手机等。电子设备中的处理器会按照如下的步骤,将一个或一个以上的应用程序的进程对应的指令加载到存储器中,并由处理器来运行存储在存储器中的应用程序,从而实现各种功能:The embodiment of the present application also provides an electronic device, such as a tablet computer, a mobile phone, and so on. The processor in the electronic device will load the instructions corresponding to the process of one or more application programs into the memory according to the following steps, and the processor will run the application programs stored in the memory to realize various functions:
接收服务器发送的资源配置信息集合,所述资源配置信息集合包括用户的 情景类别信息与对应的资源配置信息;Receiving a resource configuration information set sent by the server, where the resource configuration information set includes user scenario category information and corresponding resource configuration information;
获取电子设备当前的状态信息,并根据所述状态信息识别出用户当前的情景类别信息;Acquiring current state information of the electronic device, and identifying the user's current situation category information according to the state information;
根据所述当前的情景类别信息在所述资源配置信息集合当中匹配对应的资源配置信息;Matching corresponding resource configuration information in the resource configuration information set according to the current situation category information;
根据所述资源配置信息对所述电子设备进行设置。Setting the electronic device according to the resource configuration information.
在一实施例中,所述电子设备的状态信息包括传感器信息,根据所述状态信息识别出用户当前的情景类别信息时,所述处理器用于执行以下步骤:In an embodiment, the state information of the electronic device includes sensor information, and when the current situation category information of the user is identified according to the state information, the processor is configured to perform the following steps:
根据预设算法模型对所述传感器信息进行处理,以得到多种情景类别信息对应的概率;Processing the sensor information according to a preset algorithm model to obtain the probabilities corresponding to various scene category information;
根据所述概率确定用户当前的情景类别信息。Determine the user's current situation category information according to the probability.
在一实施例中,根据预设算法模型对所述传感器信息进行处理时,所述处理器用于执行以下步骤:In an embodiment, when processing the sensor information according to a preset algorithm model, the processor is configured to perform the following steps:
对所述传感器信息进行向量化处理以得到传感器向量;Performing vectorization processing on the sensor information to obtain a sensor vector;
对所述传感器向量进行叠加以得到传感器张量;Superimpose the sensor vectors to obtain a sensor tensor;
根据所述预设算法模型对所述传感器张量进行处理。The sensor tensor is processed according to the preset algorithm model.
在一实施例中,根据所述资源配置信息对所述电子设备进行设置时,所述处理器用于执行以下步骤:In an embodiment, when the electronic device is set according to the resource configuration information, the processor is configured to execute the following steps:
获取所述资源配置信息所包含的设备资源以及所述设备资源对应的目标参数;Acquiring device resources included in the resource configuration information and target parameters corresponding to the device resources;
根据所述目标参数设置所述设备资源。The device resource is set according to the target parameter.
在一实施例中,根据所述目标参数设置所述设备资源时,所述处理器用于执行以下步骤:In an embodiment, when setting the device resource according to the target parameter, the processor is configured to perform the following steps:
判断所述设备资源当前参数与所述目标参数是否相同;Determine whether the current parameter of the device resource is the same as the target parameter;
若否,则将所述设备资源的当前参数调整为目标参数。If not, the current parameter of the device resource is adjusted to the target parameter.
在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本申请的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。Reference to "embodiments" herein means that a specific feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment mutually exclusive with other embodiments. Those skilled in the art clearly and implicitly understand that the embodiments described herein can be combined with other embodiments.
请参阅图8,电子设备600包括处理器601以及存储器602。其中,处理器601与存储器602电性连接。Referring to FIG. 8, the electronic device 600 includes a processor 601 and a memory 602. The processor 601 is electrically connected to the memory 602.
处理器600是电子设备600的控制中心,利用各种接口和线路连接整个电子设备的各个部分,通过运行或加载存储在存储器602内的计算机程序,以及 调用存储在存储器602内的数据,执行电子设备600的各种功能并处理数据,从而对电子设备600进行整体监控。The processor 600 is the control center of the electronic device 600. It uses various interfaces and lines to connect the various parts of the entire electronic device, and executes the electronic device by running or loading the computer program stored in the memory 602 and calling the data stored in the memory 602. Various functions of the device 600 and processing data, so as to monitor the electronic device 600 as a whole.
存储器602可用于存储软件程序以及模块,处理器601通过运行存储在存储器602的计算机程序以及模块,从而执行各种功能应用以及数据处理。存储器602可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的计算机程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据电子设备的使用所创建的数据等。此外,存储器602可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。相应地,存储器602还可以包括存储器控制器,以提供处理器601对存储器602的访问。The memory 602 can be used to store software programs and modules. The processor 601 executes various functional applications and data processing by running the computer programs and modules stored in the memory 602. The memory 602 may mainly include a storage program area and a storage data area. The storage program area may store an operating system, a computer program required by at least one function (such as a sound playback function, an image playback function, etc.), etc.; Data created by the use of electronic equipment, etc. In addition, the memory 602 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices. Correspondingly, the memory 602 may further include a memory controller to provide the processor 601 with access to the memory 602.
在本申请实施例中,电子设备600中的处理器601会按照如下的步骤,将一个或一个以上的计算机程序的进程对应的指令加载到存储器602中,并由处理器601运行存储在存储器602中的计算机程序,从而实现各种功能,如下:In the embodiment of the present application, the processor 601 in the electronic device 600 loads the instructions corresponding to the process of one or more computer programs into the memory 602 according to the following steps, and the processor 601 runs and stores the instructions in the memory 602 In order to realize various functions in the computer program, as follows:
接收服务器发送的资源配置信息集合,所述资源配置信息集合包括用户的情景类别信息与对应的资源配置信息;Receiving a resource configuration information set sent by a server, where the resource configuration information set includes user scenario category information and corresponding resource configuration information;
获取电子设备当前的状态信息,并根据所述状态信息识别出用户当前的情景类别信息;Acquiring current state information of the electronic device, and identifying the user's current situation category information according to the state information;
根据所述当前的情景类别信息在所述资源配置信息集合当中匹配对应的资源配置信息;Matching corresponding resource configuration information in the resource configuration information set according to the current situation category information;
根据所述资源配置信息对所述电子设备进行设置。Setting the electronic device according to the resource configuration information.
请一并参阅图9,在一些实施方式中,电子设备600还可以包括:显示器603、射频电路604、音频电路605以及电源606。其中,其中,显示器603、射频电路604、音频电路605以及电源606分别与处理器601电性连接。Please also refer to FIG. 9. In some embodiments, the electronic device 600 may further include a display 603, a radio frequency circuit 604, an audio circuit 605 and a power supply 606. Among them, the display 603, the radio frequency circuit 604, the audio circuit 605, and the power supply 606 are electrically connected to the processor 601, respectively.
显示器603可以用于显示由用户输入的信息或提供给用户的信息以及各种图形用户接口,这些图形用户接口可以由图形、文本、图标、视频和其任意组合来构成。显示器603可以包括显示面板,在一些实施方式中,可以采用液晶显示器(Liquid Crystal Display,LCD)、或者有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板。The display 603 may be used to display information input by the user or information provided to the user, and various graphical user interfaces. These graphical user interfaces may be composed of graphics, text, icons, videos, and any combination thereof. The display 603 may include a display panel. In some embodiments, the display panel may be configured in the form of a liquid crystal display (LCD) or an organic light-emitting diode (OLED).
射频电路604可以用于收发射频信号,以通过无线通信与网络设备或其他电子设备建立无线通讯,与网络设备或其他电子设备之间收发信号。The radio frequency circuit 604 may be used to transmit and receive radio frequency signals to establish wireless communication with network equipment or other electronic equipment through wireless communication, and to transmit and receive signals with the network equipment or other electronic equipment.
音频电路605可以用于通过扬声器、传声器提供用户与电子设备之间的音频接口。The audio circuit 605 can be used to provide an audio interface between the user and the electronic device through a speaker or a microphone.
电源606可以用于给电子设备600的各个部件供电。在一些实施例中,电源606可以通过电源管理系统与处理器601逻辑相连,从而通过电源管理系统 实现管理充电、放电、以及功耗管理等功能。The power supply 606 can be used to power various components of the electronic device 600. In some embodiments, the power supply 606 may be logically connected to the processor 601 through a power management system, so that functions such as charging, discharging, and power consumption management can be managed through the power management system.
尽管图9中未示出,电子设备600还可以包括摄像头、蓝牙模块等,在此不再赘述。Although not shown in FIG. 9, the electronic device 600 may also include a camera, a Bluetooth module, etc., which will not be repeated here.
在本申请实施例中,存储介质可以是磁碟、光盘、只读存储器(Read Only Memory,ROM)、或者随机存取记忆体(Random Access Memory,RAM)等。In the embodiment of the present application, the storage medium may be a magnetic disk, an optical disc, a read only memory (Read Only Memory, ROM), or a random access memory (Random Access Memory, RAM), etc.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the above-mentioned embodiments, the description of each embodiment has its own focus. For parts that are not described in detail in an embodiment, reference may be made to related descriptions of other embodiments.
需要说明的是,对本申请实施例的设备资源配置方法而言,本领域普通测试人员可以理解实现本申请实施例设备资源配置方法的全部或部分流程,是可以通过计算机程序来控制相关的硬件来完成,计算机程序可存储于一计算机可读取存储介质中,如存储在电子设备的存储器中,并被该电子设备内的至少一个处理器执行,在执行过程中可包括如设备资源配置方法的实施例的流程。其中,的存储介质可为磁碟、光盘、只读存储器、随机存取记忆体等。It should be noted that for the device resource configuration method of the embodiment of the present application, ordinary testers in the field can understand that all or part of the process of implementing the device resource configuration method of the embodiment of the present application can be controlled by a computer program. After completion, the computer program can be stored in a computer readable storage medium, such as stored in the memory of an electronic device, and executed by at least one processor in the electronic device. The execution process can include such as device resource allocation method. The flow of the embodiment. Among them, the storage medium can be magnetic disk, optical disk, read-only memory, random access memory, etc.
对本申请实施例的设备资源配置装置而言,其各功能模块可以集成在一个处理芯片中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中,存储介质譬如为只读存储器,磁盘或光盘等。For the device resource configuration device of the embodiment of the present application, its functional modules may be integrated in one processing chip, or each module may exist alone physically, or two or more modules may be integrated in one module. The above-mentioned integrated modules can be implemented in the form of hardware or software functional modules. If the integrated module is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer readable storage medium, such as a read-only memory, a magnetic disk, or an optical disk.
以上对本申请实施例所提供的一种设备资源配置方法、装置、存储介质及电子设备进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。The above provides a detailed introduction to the device resource configuration method, device, storage medium, and electronic equipment provided by the embodiments of the present application. Specific examples are used in this article to illustrate the principles and implementations of the present application. The description of the above embodiments It is only used to help understand the method and core idea of this application; at the same time, for those skilled in the art, according to the idea of this application, there will be changes in the specific implementation and scope of application. In summary, this The content of the description should not be construed as a limitation on this application.
Claims (20)
- 一种设备资源配置方法,应用于电子设备,其中,所述方法包括以下步骤:A device resource configuration method is applied to an electronic device, wherein the method includes the following steps:接收服务器发送的资源配置信息集合,所述资源配置信息集合包括用户的情景类别信息与对应的资源配置信息;Receiving a resource configuration information set sent by a server, where the resource configuration information set includes user scenario category information and corresponding resource configuration information;获取电子设备当前的状态信息,并根据所述状态信息识别出用户当前的情景类别信息;Acquiring current state information of the electronic device, and identifying the user's current situation category information according to the state information;根据所述当前的情景类别信息在所述资源配置信息集合当中匹配对应的资源配置信息;Matching corresponding resource configuration information in the resource configuration information set according to the current situation category information;根据所述资源配置信息对所述电子设备进行设置。Setting the electronic device according to the resource configuration information.
- 根据权利要求1所述的设备资源配置方法,所述电子设备的状态信息包括传感器信息,其中,根据所述状态信息识别出用户当前的情景类别信息,包括:The device resource configuration method according to claim 1, wherein the state information of the electronic device includes sensor information, wherein identifying the user's current situation category information according to the state information includes:根据预设算法模型对所述传感器信息进行处理,以得到多种情景类别信息对应的概率;Processing the sensor information according to a preset algorithm model to obtain the probabilities corresponding to various scene category information;根据所述概率确定用户当前的情景类别信息。Determine the user's current situation category information according to the probability.
- 根据权利要求2所述的设备资源配置方法,其中,根据预设算法模型对所述传感器信息进行处理,包括:The device resource configuration method according to claim 2, wherein processing the sensor information according to a preset algorithm model comprises:对所述传感器信息进行向量化处理以得到传感器向量;Performing vectorization processing on the sensor information to obtain a sensor vector;对所述传感器向量进行叠加以得到传感器张量;Superimpose the sensor vectors to obtain a sensor tensor;根据所述预设算法模型对所述传感器张量进行处理。The sensor tensor is processed according to the preset algorithm model.
- 根据权利要求1所述的设备资源配置方法,其中,根据所述资源配置信息对所述电子设备进行设置,包括:The device resource configuration method according to claim 1, wherein the setting of the electronic device according to the resource configuration information comprises:获取所述资源配置信息所包含的设备资源以及所述设备资源对应的目标参数;Acquiring device resources included in the resource configuration information and target parameters corresponding to the device resources;根据所述目标参数设置所述设备资源。The device resource is set according to the target parameter.
- 根据权利要求4所述的设备资源配置方法,其中,根据所述目标参数设置所述设备资源,包括:The device resource configuration method according to claim 4, wherein setting the device resource according to the target parameter comprises:判断所述设备资源当前参数与所述目标参数是否相同;Determine whether the current parameter of the device resource is the same as the target parameter;若否,则将所述设备资源的当前参数调整为目标参数。If not, the current parameter of the device resource is adjusted to the target parameter.
- 一种设备资源配置方法,应用于服务器,其中,所述方法包括以下步骤:A device resource configuration method applied to a server, wherein the method includes the following steps:接收多个电子设备发送的用户情景类别信息与对应的资源配置信息;Receiving user scenario category information and corresponding resource configuration information sent by multiple electronic devices;根据预设算法确定每个所述用户情景类别信息所对应的目标资源配置信 息;Determining the target resource configuration information corresponding to each of the user scenario category information according to a preset algorithm;根据所述多个用户情景类别信息以及对应的目标资源配置信息生成资源配置信息集合;Generating a resource configuration information set according to the multiple user scenario category information and corresponding target resource configuration information;将所述资源配置信息集合发送至电子设备。Sending the resource configuration information set to the electronic device.
- 根据权利要求6所述的设备资源配置方法,其中,所述预设算法为协同过滤算法。The device resource configuration method according to claim 6, wherein the preset algorithm is a collaborative filtering algorithm.
- 一种设备资源配置装置,应用于电子设备,其中,所述装置包括:获取模块、识别模块、匹配模块以及设置模块;A device resource configuration device applied to electronic equipment, wherein the device includes: an acquisition module, an identification module, a matching module, and a setting module;所述获取模块,用于接收服务器发送的资源配置信息集合,所述资源配置信息集合包括用户的情景类别信息与对应的资源配置信息;The acquisition module is configured to receive a resource configuration information set sent by a server, the resource configuration information set includes user scenario category information and corresponding resource configuration information;所述识别模块,用于获取电子设备当前的状态信息,并根据所述状态信息识别出用户当前的情景类别信息;The identification module is used to obtain the current state information of the electronic device, and identify the current situation category information of the user according to the state information;所述匹配模块,用于根据所述当前的情景类别信息在所述资源配置信息集合当中匹配对应的资源配置信息;The matching module is configured to match corresponding resource configuration information in the resource configuration information set according to the current situation category information;所述设置模块,用于根据所述资源配置信息对所述电子设备进行设置。The setting module is configured to set the electronic device according to the resource configuration information.
- 根据权利要求8所述的设备资源配置装置,所述电子设备的状态信息包括传感器信息,其中,所述识别模块包括:处理子模块和确定子模块;The device resource configuration device according to claim 8, wherein the state information of the electronic device includes sensor information, wherein the identification module includes: a processing sub-module and a determining sub-module;所述处理子模块,用于根据预设算法模型对所述传感器信息进行处理,以得到多种情景类别信息对应的概率;The processing sub-module is configured to process the sensor information according to a preset algorithm model to obtain the probabilities corresponding to various types of situation information;所述确定子模块,用于根据所述概率确定用户当前的情景类别信息。The determining sub-module is used to determine the current situation category information of the user according to the probability.
- 根据权利要求9所述的设备资源配置装置,其中,The device resource configuration device according to claim 9, wherein:所述处理子模块,具体用于对所述传感器信息进行向量化处理以得到传感器向量,对所述传感器向量进行叠加以得到传感器张量,根据所述预设算法模型对所述传感器张量进行处理。The processing sub-module is specifically configured to perform vectorization processing on the sensor information to obtain a sensor vector, superimpose the sensor vector to obtain a sensor tensor, and perform processing on the sensor tensor according to the preset algorithm model deal with.
- 根据权利要求8所述的设备资源配置装置,其中,所述设置模块包括:获取子模块和设置子模块;The device resource configuration device according to claim 8, wherein the setting module comprises: an obtaining sub-module and a setting sub-module;所述获取子模块,用于获取所述资源配置信息所包含的设备资源以及所述设备资源对应的目标参数;The acquisition sub-module is configured to acquire the device resource included in the resource configuration information and the target parameter corresponding to the device resource;所述设置子模块,用于根据所述目标参数设置所述设备资源。The setting submodule is used to set the device resource according to the target parameter.
- 根据权利要求11所述的设备资源配置装置,其中,The device resource configuration device according to claim 11, wherein:所述设置子模块,具体用于判断所述设备资源当前参数与所述目标参数是否相同,若否,则将所述设备资源的当前参数调整为目标参数。The setting submodule is specifically configured to determine whether the current parameter of the device resource is the same as the target parameter, and if not, adjust the current parameter of the device resource to the target parameter.
- 一种设备资源配置装置,应用于服务器,其中,所述装置包括:接收模块、确定模块、生成模块以及发送模块;A device resource configuration device applied to a server, wherein the device includes: a receiving module, a determining module, a generating module, and a sending module;所述接收模块,用于接收多个电子设备发送的用户情景类别信息与对应的资源配置信息;The receiving module is configured to receive user context category information and corresponding resource configuration information sent by multiple electronic devices;所述确定模块,用于根据预设算法确定每个所述用户情景类别信息所对应的目标资源配置信息;The determining module is configured to determine the target resource configuration information corresponding to each user scenario category information according to a preset algorithm;所述生成模块,用于根据所述多个用户情景类别信息以及对应的目标资源配置信息生成资源配置信息集合。The generating module is configured to generate a resource configuration information set according to the multiple user scenario category information and corresponding target resource configuration information.所述发送模块,用于将所述资源配置信息集合发送至电子设备。The sending module is configured to send the resource configuration information set to an electronic device.
- 根据权利要求13所述的设备资源配置装置,其中,所述预设算法为协同过滤算法。The device resource configuration device according to claim 13, wherein the preset algorithm is a collaborative filtering algorithm.
- 一种存储介质,其上存储有计算机程序,其中,当所述计算机程序在计算机上运行时,使得所述计算机执行如权利要求1至5任一项所述的设备资源配置方法。A storage medium having a computer program stored thereon, wherein when the computer program runs on a computer, the computer is caused to execute the device resource configuration method according to any one of claims 1 to 5.
- 一种电子设备,包括处理器和存储器,所述存储器存储有多条指令,其中,所述处理器加载所述存储器中的指令用于执行以下步骤:An electronic device includes a processor and a memory, the memory stores a plurality of instructions, wherein the processor loads the instructions in the memory to perform the following steps:接收服务器发送的资源配置信息集合,所述资源配置信息集合包括用户的情景类别信息与对应的资源配置信息;Receiving a resource configuration information set sent by a server, where the resource configuration information set includes user scenario category information and corresponding resource configuration information;获取电子设备当前的状态信息,并根据所述状态信息识别出用户当前的情景类别信息;Acquiring current state information of the electronic device, and identifying the user's current situation category information according to the state information;根据所述当前的情景类别信息在所述资源配置信息集合当中匹配对应的资源配置信息;Matching corresponding resource configuration information in the resource configuration information set according to the current situation category information;根据所述资源配置信息对所述电子设备进行设置。Setting the electronic device according to the resource configuration information.
- 根据权利要求16所述的电子设备,所述电子设备的状态信息包括传感器信息,其中,根据所述状态信息识别出用户当前的情景类别信息时,所述处理器用于执行以下步骤:The electronic device according to claim 16, wherein the state information of the electronic device includes sensor information, wherein, when the user's current situation category information is identified according to the state information, the processor is configured to perform the following steps:根据预设算法模型对所述传感器信息进行处理,以得到多种情景类别信息对应的概率;Processing the sensor information according to a preset algorithm model to obtain the probabilities corresponding to various scene category information;根据所述概率确定用户当前的情景类别信息。Determine the user's current situation category information according to the probability.
- 根据权利要求17所述的电子设备,其中,根据预设算法模型对所述传感器信息进行处理时,所述处理器用于执行以下步骤:The electronic device according to claim 17, wherein, when the sensor information is processed according to a preset algorithm model, the processor is configured to perform the following steps:对所述传感器信息进行向量化处理以得到传感器向量;Performing vectorization processing on the sensor information to obtain a sensor vector;对所述传感器向量进行叠加以得到传感器张量;Superimpose the sensor vectors to obtain a sensor tensor;根据所述预设算法模型对所述传感器张量进行处理。The sensor tensor is processed according to the preset algorithm model.
- 根据权利要求16所述的电子设备,其中,根据所述资源配置信息对所述电子设备进行设置时,所述处理器用于执行以下步骤:The electronic device according to claim 16, wherein, when the electronic device is set according to the resource configuration information, the processor is configured to perform the following steps:获取所述资源配置信息所包含的设备资源以及所述设备资源对应的目标参数;Acquiring device resources included in the resource configuration information and target parameters corresponding to the device resources;根据所述目标参数设置所述设备资源。The device resource is set according to the target parameter.
- 根据权利要求19所述的电子设备,其中,根据所述目标参数设置所述设备资源时,所述处理器用于执行以下步骤:The electronic device according to claim 19, wherein, when the device resource is set according to the target parameter, the processor is configured to perform the following steps:判断所述设备资源当前参数与所述目标参数是否相同;Determine whether the current parameter of the device resource is the same as the target parameter;若否,则将所述设备资源的当前参数调整为目标参数。If not, the current parameter of the device resource is adjusted to the target parameter.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910282433.3A CN111796927B (en) | 2019-04-09 | 2019-04-09 | Device resource allocation method and device, storage medium and electronic device |
CN201910282433.3 | 2019-04-09 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2020207316A1 true WO2020207316A1 (en) | 2020-10-15 |
Family
ID=72752127
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2020/082820 WO2020207316A1 (en) | 2019-04-09 | 2020-04-01 | Device resource configuration method and apparatus, storage medium and electronic device |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN111796927B (en) |
WO (1) | WO2020207316A1 (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1633192A (en) * | 2003-12-25 | 2005-06-29 | 仁宝电脑工业股份有限公司 | Method and system for automatic situation mode management of wireless portable electronic device |
CN1635810A (en) * | 2003-12-26 | 2005-07-06 | 仁宝电脑工业股份有限公司 | Mobile phone situation mode management method and system |
US20130283283A1 (en) * | 2011-01-13 | 2013-10-24 | Htc Corporation | Portable electronic device and control method therefor |
CN104506707A (en) * | 2014-11-21 | 2015-04-08 | 惠州Tcl移动通信有限公司 | Control method and control system for context awareness mode |
CN108990084A (en) * | 2017-06-01 | 2018-12-11 | 电信科学技术研究院 | A kind of information acquisition method, device, equipment and computer readable storage medium |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8180583B1 (en) * | 2011-11-16 | 2012-05-15 | Google Inc. | Methods and systems to determine a context of a device |
EP2795538A4 (en) * | 2011-12-21 | 2016-01-27 | Nokia Technologies Oy | A method, an apparatus and a computer software for context recognition |
CN107180245A (en) * | 2016-03-10 | 2017-09-19 | 滴滴(中国)科技有限公司 | A kind of indoor and outdoor scene recognition method and device |
CN107483725A (en) * | 2017-07-31 | 2017-12-15 | 广东欧珀移动通信有限公司 | Resource allocation method and related products |
CN108196998A (en) * | 2018-01-02 | 2018-06-22 | 联想(北京)有限公司 | A kind of state identification method, mobile equipment and server |
CN108628652B (en) * | 2018-03-13 | 2023-02-28 | Oppo广东移动通信有限公司 | User interface rendering method, device and terminal |
-
2019
- 2019-04-09 CN CN201910282433.3A patent/CN111796927B/en active Active
-
2020
- 2020-04-01 WO PCT/CN2020/082820 patent/WO2020207316A1/en active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1633192A (en) * | 2003-12-25 | 2005-06-29 | 仁宝电脑工业股份有限公司 | Method and system for automatic situation mode management of wireless portable electronic device |
CN1635810A (en) * | 2003-12-26 | 2005-07-06 | 仁宝电脑工业股份有限公司 | Mobile phone situation mode management method and system |
US20130283283A1 (en) * | 2011-01-13 | 2013-10-24 | Htc Corporation | Portable electronic device and control method therefor |
CN104506707A (en) * | 2014-11-21 | 2015-04-08 | 惠州Tcl移动通信有限公司 | Control method and control system for context awareness mode |
CN108990084A (en) * | 2017-06-01 | 2018-12-11 | 电信科学技术研究院 | A kind of information acquisition method, device, equipment and computer readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN111796927B (en) | 2024-10-29 |
CN111796927A (en) | 2020-10-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109299315B (en) | Multimedia resource classification method and device, computer equipment and storage medium | |
CN111182453B (en) | Positioning method, positioning device, electronic equipment and storage medium | |
CN111813532B (en) | Image management method and device based on multitask machine learning model | |
CN111897996B (en) | Topic label recommendation method, device, equipment and storage medium | |
WO2018120813A1 (en) | Smart recommendation method and terminal | |
CN108494947B (en) | Image sharing method and mobile terminal | |
CN110168530A (en) | Electronic equipment and the method for operating the electronic equipment | |
US20220091905A1 (en) | Method and device for providing application list by electronic device | |
CN111737573A (en) | Resource recommendation method, device, equipment and storage medium | |
CN108966004A (en) | A kind of method for processing video frequency and terminal | |
CN108363750B (en) | Clothing recommendation method and related products | |
CN108255382A (en) | A kind of suspension menu content recommends method and device | |
CN110163380A (en) | Data analysing method, model training method, device, equipment and storage medium | |
CN112560612B (en) | System, method, computer device and storage medium for determining business algorithm | |
KR20200085143A (en) | Conversational control system and method for registering external apparatus | |
CN110544287B (en) | Picture allocation processing method and electronic equipment | |
CN111798019B (en) | Intention prediction method, intention prediction device, storage medium and electronic equipment | |
CN111797867A (en) | System resource optimization method, device, storage medium and electronic device | |
WO2020207253A1 (en) | Application permission management method and apparatus, and storage medium and electronic device | |
CN115841575A (en) | Key point detection method, device, electronic apparatus, storage medium, and program product | |
CN114282587A (en) | Data processing method and device, computer equipment and storage medium | |
CN111797874B (en) | Behavior prediction method and device, storage medium and electronic equipment | |
WO2020207316A1 (en) | Device resource configuration method and apparatus, storage medium and electronic device | |
CN111800538B (en) | Information processing method, device, storage medium and terminal | |
KR20230029055A (en) | Electronic device and method for providing personalized user context aware service |
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: 20786750 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: 20786750 Country of ref document: EP Kind code of ref document: A1 |