Modeling method, device, storage medium, electronic device and scene recognition method

By acquiring and constructing multi-dimensional data relationships and using knowledge graph technology to train scene recognition models, it solves the problem of low efficiency in identifying and switching split-screen applications in the existing technology, and achieves a more efficient and personalized user experience.

CN111814812BActive Publication Date: 2024-09-06GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201910282194.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-04-09
Publication Date
2024-09-06
Estimated Expiration
2039-04-09

AI Technical Summary

Technical Problem

Existing technology is difficult to efficiently identify and switch split-screen applications, resulting in poor user experience and inability to fully utilize multi-dimensional data information.

Method used

By obtaining device environment data, device operation data, user behavior data and user portrait data, we extract parameter ontology, build the relationship between parameter ontologies and the relationship between parameter ontologies and scene categories, and use knowledge graph technology to train scene recognition models to achieve Personalized panoramic view recognition.

Benefits of technology

The robustness and accuracy of scene categories are improved, making the identified scene categories more personalized, better reflecting user preferences, and providing users with more personalized intelligent services.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111814812B
    Figure CN111814812B
Patent Text Reader

Abstract

The embodiments of the present application disclose a modeling method, device, storage medium, electronic device and scene recognition method. The method includes: obtaining data of multiple dimensions; extracting multiple parameter ontologies from the data of multiple dimensions, and constructing a first relationship between each parameter ontology; constructing a second relationship between multiple parameter ontologies and preset scene categories; performing model training according to multiple parameter ontologies, preset scene categories, first relationships and second relationships to obtain a scene recognition model for identifying scene categories. This solution can fully utilize multi-dimensional information, so that the scene categories finally constructed have strong robustness and high accuracy; at the same time, the personalized panoramic view recognition model constructed by knowledge graph technology can make the finally identified scene categories better reflect the user's preferences, making the finally identified scene categories more personalized, which helps to provide users with more personalized intelligent services.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of electronic devices, and in particular to a modeling method, device, storage medium, electronic device and scene recognition method. Background Art

[0002] With the development of electronic technology, electronic devices such as smartphones are becoming more and more intelligent. Electronic devices can process data through various algorithm models to provide users with various functions. For example, electronic devices can learn the behavioral characteristics of users based on algorithm models to provide users with personalized services. Summary of the invention

[0003] Embodiments of the present application provide a modeling method, device, storage medium, electronic device, and scene recognition method, which can improve the efficiency of switching split-screen applications.

[0004] In a first aspect, an embodiment of the present application provides a modeling method, including:

[0005] Acquire data of multiple dimensions, wherein the data of multiple dimensions at least includes: environment data of the device, device operation data, user behavior data, and user portrait data;

[0006] Extracting multiple parameter ontologies from the data of the multiple dimensions, and constructing first relationships between the parameter ontologies;

[0007] Constructing a second relationship between the plurality of parameter ontologies and the preset scene categories;

[0008] Model training is performed according to the multiple parameter bodies, the preset scene categories, the first relationship and the second relationship to obtain a scene recognition model for identifying scene categories.

[0009] In a second aspect, the embodiment of the present application further provides a scene recognition method, including:

[0010] Get data of multiple dimensions in the current scene;

[0011] The data of the multiple dimensions are processed according to a pre-trained scene recognition model to identify the current scene category, wherein the scene recognition model is trained according to a reference ontology in the data of the multiple dimensions under different scenes, a first relationship between each parameter ontology, a preset scene category and a second relationship between multiple parameter ontologies and the preset scene category.

[0012] In a third aspect, an embodiment of the present application further provides a modeling device, including:

[0013] An acquisition module, used to acquire data of multiple dimensions, wherein the data of multiple dimensions at least includes: environmental data of the device, device operation data, user behavior data, and user portrait data;

[0014] A first construction module, used to extract multiple parameter ontologies from the data of the multiple dimensions, and construct a first relationship between the parameter ontologies;

[0015] A second construction module, used to construct a second relationship between the plurality of parameter ontologies and the preset scene categories;

[0016] The processing module is used to perform model training according to the multiple parameter bodies, the preset scene categories, the first relationship and the second relationship to obtain a scene recognition model for identifying the scene category.

[0017] In a fourth aspect, an embodiment of the present application further provides a storage medium on which a computer program is stored, and when the computer program is executed by a processor, the steps of the above-mentioned modeling method or scene recognition method are implemented.

[0018] In a fifth aspect, an embodiment of the present application further provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above-mentioned modeling method or scene recognition method when executing the program.

[0019] The modeling method provided in the embodiment of the present application obtains data of multiple dimensions; extracts multiple parameter ontologies from the data of multiple dimensions, and constructs a first relationship between each parameter ontology; constructs a second relationship between multiple parameter ontologies and preset scene categories; and performs model training according to multiple parameter ontologies, preset scene categories, first relationships, and second relationships to obtain a scene recognition model for identifying scene categories. This solution can fully utilize multi-dimensional information, so that the scene categories finally constructed have strong robustness and high accuracy; at the same time, the personalized panoramic view recognition model constructed by the knowledge graph technology can make the finally identified scene categories better reflect the user's preferences, making the finally identified scene categories more personalized, which helps to provide users with more personalized intelligent services. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present application, and those skilled in the art can obtain other drawings based on these drawings without creative work.

[0021] Figure 1 A schematic diagram of a panoramic perception architecture provided in an embodiment of the present application.

[0022] Figure 2 A first flow chart of the modeling method provided in the embodiment of the present application.

[0023] Figure 3 A second flow chart of the modeling method provided in an embodiment of the present application.

[0024] Figure 4 A third flow chart of the modeling method provided in the embodiment of the present application.

[0025] Figure 5 A schematic diagram of the scenario architecture of the modeling method provided in an embodiment of the present application.

[0026] Figure 6 A schematic diagram of the structure of a modeling device provided in an embodiment of the present application.

[0027] Figure 7 A first structural schematic diagram of an electronic device provided in an embodiment of the present application.

[0028] Figure 8 A second structural schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0029] The technical solutions in the embodiments of the present application will be described clearly and completely below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present application.

[0030] refer to Figure 1 , Figure 1 A schematic diagram of a panoramic perception architecture provided in an embodiment of the present application. The modeling method is applied to an electronic device. The electronic device is provided with a panoramic perception architecture. The panoramic perception architecture is an integration of hardware and software used to implement the modeling method in the electronic device.

[0031] Among them, the panoramic perception architecture includes information perception layer, data processing layer, feature extraction layer, scenario modeling layer and intelligent service layer.

[0032] The information perception layer is used to obtain information about the electronic device itself or information in the external environment. The information perception layer may include multiple sensors. For example, the information perception layer includes multiple sensors such as distance sensors, magnetic field sensors, light sensors, acceleration sensors, fingerprint sensors, Hall sensors, position sensors, gyroscopes, inertial sensors, attitude sensors, barometers, heart rate sensors, etc.

[0033] Among them, the distance sensor can be used to detect the distance between the electronic device and the 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 fingerprint information of the user. The Hall sensor is a magnetic field sensor made according to the Hall effect, which can be used to realize the automatic control of the electronic device. The position sensor can be used to detect the current geographical location of the electronic device. The gyroscope can be used to detect the angular velocity of the electronic device in all directions. The inertial sensor can be used to detect the motion data of the electronic device. 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 in which the electronic device is located. The heart rate sensor can be used to detect the heart rate information of the user.

[0034] 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, data reduction, etc. on the data obtained by the information perception layer.

[0035] Among them, data cleaning refers to cleaning the large amount of data obtained by the information perception layer to eliminate invalid data and duplicate data. Data integration refers to integrating multiple single-dimensional data obtained by the information perception layer into a higher or more abstract dimension to comprehensively process multiple single-dimensional data. Data transformation refers to converting the data type or format of the data obtained by the information perception layer so that the transformed data meets the processing requirements. Data reduction refers to maximizing the reduction of data volume while keeping the original appearance of the data as much as possible.

[0036] The feature extraction layer is used to extract features from the 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, the state of the user, or the environmental state of the environment in which the electronic device is located.

[0037] Among them, the feature extraction layer can extract features or process the extracted features through filtering, packaging, integration and other methods.

[0038] 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 integrating multiple feature extraction methods together to build a more efficient and accurate feature extraction method for extracting features.

[0039] 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, the state of the user, or the state of the environment, etc. For example, the scenario modeling layer can construct a key value model, a pattern identification model, a graph model, an entity relationship model, an object-oriented model, etc. based on the features extracted by the feature extraction layer.

[0040] The intelligent service layer is used to provide intelligent services to users based on the model constructed by the scenario modeling layer. For example, the intelligent service layer can provide basic application services to users, perform system intelligent optimization for electronic devices, and provide personalized intelligent services to users.

[0041] 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 may constitute 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 algorithm, conditional random field, residual network, long short-term memory network, convolutional neural network, recurrent neural network and other algorithms.

[0042] The present application provides a modeling method, which can be applied to electronic devices. The electronic devices can be smart phones, tablet computers, gaming devices, AR (Augmented Reality) devices, cars, data storage devices, audio playback devices, video playback devices, notebooks, desktop computing devices, wearable devices such as watches, glasses, helmets, electronic bracelets, electronic necklaces, electronic clothing, and other devices.

[0043] refer to Figure 2 , Figure 2 A first flow chart of a modeling method provided in an embodiment of the present application. The modeling method comprises the following steps:

[0044] 110. Acquire data of multiple dimensions, where the data of multiple dimensions at least include: device environment data, device operation data, user behavior data, and user portrait data.

[0045] In an embodiment of the present application, the data of multiple dimensions may be panoramic data, that is, data information of parameters of different dimensions in a certain scene.

[0046] Among them, environmental data can be natural environment data detected by electronic devices through sensors, such as weather, temperature, sound, etc. Equipment operation data is the operation data inside electronic devices, such as central processing unit (CPU) operation information, power information, memory information, etc. User behavior data can be data used to describe user behavior habits, such as music preference habits, application usage habits, screen operation habits, etc. User portrait data can be basic user portrait data, such as gender, age, education, etc.

[0047] In an embodiment of the present application, the data of multiple dimensions may also include other data related to the user or the device, such as device resource data, social context data, and the like.

[0048] In some embodiments, the acquired panoramic data may be stored in a database having a specific data structure to facilitate data retrieval during subsequent task execution. For example, the database may be a database based on Structured Query Language (SQL).

[0049] 120, extract multiple parameter ontologies from the data of multiple dimensions, and construct first relationships between the parameter ontologies.

[0050] Among them, parameter ontology refers to substances with practical meanings and concepts with physical meanings.

[0051] For environmental data: the environment is a kind of ontology, such as temperature, humidity, and light. In addition, temperature, humidity, and light can be regarded as attributes of the environment because they can be used to characterize a certain aspect of the environment. For example, temperature can contain some attributes. For temperature, there are two types: Fahrenheit and Celsius.

[0052] For device operation data, the main body mainly focuses on the data inside the device, such as CPU, power, time, etc. In addition, data can also be obtained through sensors, such as light, temperature, etc.

[0053] For user behavior data: songs, games, applications, news, etc. can be used as entities. The attributes of songs are usually type, singer, duration, etc.; the attributes of games are usually type, developer, size, etc.; the attributes of applications can be functions, developers, size, version number, etc.; the attributes of news are categories, word count, author, etc.

[0054] For user portrait data: user, location, education level, etc. can be used as the ontology, and location and education level are also attributes of the user. The main attributes of the user include location, education level, gender, hobbies, age, etc.; the attributes of location include birthplace, work unit address, residential address, etc.; the attributes of education level include school, graduation time, education level, etc.

[0055] In practical applications, there are many ways to extract parameter ontologies and construct relationships between parameter ontologies. In some embodiments, the step of "extracting multiple parameter ontologies from the panoramic data and constructing a first relationship between each parameter ontology" can be performed according to an existing ontology relationship construction method, which may include the following process:

[0056] Extracting multiple parameter ontologies from the panoramic data using knowledge graph technology;

[0057] Knowledge reasoning technology is used to infer the first relationship between each parameter ontology.

[0058] Among them, the Knowledge Graph, also known as the Scientific Knowledge Graph, is a series of various graphs that show the development process and structural relationship of knowledge. It uses visualization technology to describe knowledge resources and their carriers, and mine, analyze, construct, draw and display knowledge and their interrelationships.

[0059] Knowledge reasoning technology mainly solves the logical relationship between premises and conclusions in the reasoning process, as well as the problem of uncertainty transmission in imprecise reasoning. According to different classification standards, reasoning methods can be mainly classified into the following three ways:

[0060] In terms of method, it can be divided into deductive reasoning and inductive reasoning;

[0061] In terms of certainty, it can be divided into precise reasoning and imprecise reasoning;

[0062] Based on monotonicity, it can be divided into monotonic reasoning and non-monotonic reasoning.

[0063] In the embodiment of the present application, there are many ways to infer the relationship between the parameter ontologies using knowledge reasoning technology. For example, the relationship between two parameter ontologies can be calibrated by a marking method used by those skilled in the art.

[0064] In addition, it can also be an ontology relationship inference method based on feature vectors. That is, in some embodiments, the step of "using knowledge reasoning technology to infer the first relationship between the parameter ontologies" can include the following process:

[0065] Constructing a set of two-tuples between the plurality of parameter ontologies;

[0066] Construct a feature vector for each set of two-tuples;

[0067] The feature vector is classified to determine a first relationship between two elements in the two-tuple set.

[0068] In specific implementation, a series of binary sets between parameter ontologies can be constructed. Taking user portrait data as an example, if the ontologies included are user, location, and education, three binary sets can be constructed, namely {user, location}, {user, education}, and {location, education}.

[0069] First, a feature vector is constructed for each tuple. The feature vector can be constructed by collecting data from a large number of text prediction libraries, mainly using some natural language processing techniques. Then, classification algorithms such as Bayesian models and deep neural networks can be used to classify the feature vector. Assume that there are two types of relationships: "equal" and "belonging to". "Equal" means that the relationship between the two is equal and parallel, and "belonging to" means that the relationship between the two is subordinate. Then from the three tuples of {user, location}, {user, education} and {location, education}, the category of {user, location} is "belonging to", that is, the location belongs to the user; the relationship of {user, education} is also "belonging to"; and {location, education} is a "equal" relationship, because the two are equal and parallel, not subordinate.

[0070] 130, construct a second relationship between multiple parameter ontologies and preset scene categories.

[0071] Specifically, a large amount of ontology and category data can be collected, and a mapping relationship between sample ontology and sample category can be established in advance. Then, based on the mapping relationship, each parameter ontology is matched with a corresponding preset scene category, and a relationship between the two is constructed.

[0072] 140 , a scene recognition model for identifying scene categories is obtained by performing model training on multiple parameter ontologies, preset scene categories, first relationships, and second relationships.

[0073] In some embodiments, the scene recognition model may also be referred to as a panoramic view recognition model, which is applicable to scenes with more complex scenes and involving more data dimensions.

[0074] In some embodiments, reference Figure 3 , Figure 3 A second flow chart of the modeling method provided in an embodiment of the present application.

[0075] In some embodiments, the attributes of the parameter ontology may be added to the above scene recognition model to further enrich the scene recognition model. That is, before the preset algorithm model is used to process the multiple parameter ontologies, preset scene categories, first relationships and second relationships to obtain the scene recognition model, the following process may also be included:

[0076] 150, extracting attributes of multiple parameter entities from data of multiple dimensions;

[0077] 160, constructing a third relationship between an attribute and its own parameter ontology.

[0078] Among them, the attribute is data that can be used to characterize the parameter ontology. For example, for device operation data, the extracted attributes mainly refer to local attributes, such as the number of CPU cores, operating frequency, etc. It should be noted that the third relationship between the above attributes and the parameter ontology to which they belong is a subordinate relationship.

[0079] Then continue to refer to Figure 3 The step of “using a preset algorithm model to process multiple parameter entities, preset scene categories, first relationships and second relationships to obtain a scene recognition model for identifying scene categories” may include:

[0080] 141. Using a preset algorithm model, multiple parameter entities, preset scene categories, attributes, first relationships, second relationships, and third relationships are processed to obtain a scene recognition model for identifying scene categories.

[0081] Among them, the preset algorithm model can be a random walk model.

[0082] Specifically, after constructing the first relationship, the second relationship and the third relationship, the random walk model is used to train multiple parameter ontology preset scene categories, the first relationship and the second relationship, so as to obtain a relationship network between parameter ontologies, between parameter ontologies and scene categories, and between scene categories and scene categories, so as to obtain a scene recognition model for identifying scene categories.

[0083] In practical applications, the relationship between parameter ontologies and the attributes possessed by parameter ontologies are equivalent to a relationship graph, where nodes are parameter ontologies and attributes, and edges are the relationship between nodes.

[0084] In some embodiments, the relationship between some scene categories and parameter ontologies may be manually marked. For example, the parameter ontologies used in office-type scenes are mainly office, office applications, lighting, and the like.

[0085] Next, the parameter ontology, attributes, scene categories, and the constructed relationships are combined, which is equivalent to having a larger relationship graph. That is, the nodes on the graph are added with scene categories, and the edges are added with the relationship between scene categories and ontology, thereby enriching the panoramic view recognition model.

[0086] In some embodiments, reference Figure 4 and Figure 5 . Figure 4 A third flow chart of the modeling method provided in the embodiment of the present application is shown in FIG. Figure 4 A schematic diagram of the scenario architecture of the modeling method provided in an embodiment of the present application.

[0087] In some embodiments, the step of “using a preset algorithm model to process multiple parameter ontologies, preset scene categories, attributes, first relationships, second relationships, and third relationships to obtain a scene recognition model for identifying scene categories” may include the following process:

[0088] 1411, according to a preset rule, multiple parameter bodies, preset scene categories, attributes, first relationships, second relationships, and third relationships are matrixed to obtain an information matrix;

[0089] 1412. Process the information matrix using a preset algorithm model to obtain a scene recognition model for identifying scene categories.

[0090] In some embodiments, the step of “matrix-processing the plurality of parameter bodies, preset scene categories, attributes, first relationships, second relationships, and third relationships according to preset rules to obtain an information matrix” may include the following process:

[0091] The scene categories are set as rows of a matrix, the parameter bodies and their attributes are set as columns of the matrix, and the first, second and third relations are set as elements of the matrix; or,

[0092] The parameter ontology and its attributes are set as rows of a matrix, the scene categories are set as columns of the matrix, and the first relationship, the second relationship, and the third relationship are set as elements of the matrix.

[0093] Specifically, the relationship diagram obtained above can be formalized into a matrix, where the matrix is ​​the behavior scenario category, the matrix columns are the parameter ontology and attributes, and the matrix elements are the edge types; or, the matrix is ​​the behavior parameter ontology and attributes, the matrix columns are the scenario categories, and the matrix elements are the edge types.

[0094] Specifically, a random walk model can be used to learn and adjust the elements of the matrix. Based on the fact that a large number of elements in the matrix obtained above are 0, that is, there is no edge between the scene category and the matrix's body or attributes, the random walk model can use a random gradient descent learning method to learn and adjust the elements in the matrix until convergence to obtain a converged matrix. That is, in some embodiments, the step of "using a preset algorithm model to process the information matrix to obtain a panoramic view recognition model" may include the following process:

[0095] The preset algorithm model adopts a learning method of stochastic gradient descent to iteratively process the elements of the matrix until convergence, so as to obtain a scene recognition model for identifying scene categories.

[0096] Specifically, random walks iterate and learn the relationship between the edges of nodes on a relationship graph, and finally obtain a new graph that is more accurate and more comprehensive in measuring relationships. The converged matrix obtained is equivalent to relearning and reconstructing the relationship between scene categories and parameter entities or attributes. At this time, the converged matrix can be considered as a new personalized panoramic view.

[0097] It should be understood that in the embodiments of the present application, terms such as "first", "second", etc. are only used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. The objects described in this way can be interchangeable under appropriate circumstances.

[0098] In specific implementation, the present application is not limited by the execution order of the various steps described. If no conflict occurs, some steps can be performed in other orders or simultaneously.

[0099] As can be seen from the above, the modeling method provided by the embodiment of the present application obtains panoramic data, and the panoramic data at least includes: the environmental data of the device, the device operation data, the user behavior data, and the user portrait data; extracts multiple parameter ontologies from the panoramic data, and constructs the first relationship between each parameter ontology; constructs the second relationship between the multiple parameter ontologies and the preset scene categories; uses the preset algorithm model to process the multiple parameter ontologies, the preset scene categories, the first relationship and the second relationship to obtain a panoramic view recognition model that can identify the scene category. This solution can fully utilize multi-dimensional information, so that the scene category finally constructed has strong robustness and high accuracy. At the same time, the personalized panoramic view recognition model constructed by the knowledge graph technology can make the scene category finally identified better reflect the user's preferences, making the scene category finally identified more personalized, which helps to provide users with more personalized intelligent services.

[0100] The present application also provides a scene recognition method, including:

[0101] Get data of multiple dimensions in the current scene;

[0102] The data of the multiple dimensions are processed according to a pre-trained scene recognition model to identify the current scene category, wherein the scene recognition model is trained according to a reference ontology in the data of the multiple dimensions under different scenes, a first relationship between each parameter ontology, a preset scene category, and a second relationship between multiple parameter ontologies and the preset scene category.

[0103] In practical applications, based on the modeling method provided in the embodiment of the present application, the information perception layer collects panoramic data of multiple dimensions in the current scene through sensors in the electronic device, such as the environmental data of the device, device operation data, user behavior data, and user portrait data. Then, the information perception layer provides the collected panoramic data to the data processing layer for data cleaning, data integration, data transformation, data reduction and other processing. Then, the data processing layer provides the processed data to the feature extraction layer, and the feature extraction layer uses the panoramic data from the data processing layer as the data that needs to be feature extracted, and extracts features based on the feature extraction method provided in the embodiment of the present application, extracts multiple parameter ontologies from the data of multiple dimensions, and constructs features such as the first relationship between each parameter ontology and the second relationship between multiple parameter ontologies and preset scene categories. The scenario modeling layer performs modeling based on the features from the feature extraction layer, and uses the obtained features to train the specified model to obtain a trained scene recognition model for identifying scene categories. Finally, the intelligent service layer identifies the scene category of the scene containing different panoramic data based on the model constructed by the scenario modeling layer; for example, data in multiple dimensions can be obtained: the scene with low ambient volume, almost unchanged temperature, low device usage frequency, almost zero device movement, and the current time point is the user's working time is an office scene.

[0104] The embodiment of the present application also provides a modeling device. The modeling device can be integrated in an electronic device. The electronic device can be a smart phone, a tablet computer, a gaming device, an AR (Augmented Reality) device, a car, a data storage device, an audio playback device, a video playback device, a notebook, a desktop computing device, a wearable device such as a watch, glasses, a helmet, an electronic bracelet, an electronic necklace, an electronic clothing, and the like.

[0105] refer to Figure 6 , Figure 6The schematic diagram of the structure of the modeling device provided in the embodiment of the present application. The modeling device 200 may include: an acquisition module 201, a first construction module 202, a second construction module 203, and a processing module 204, wherein:

[0106] The acquisition module 201 is used to acquire data of multiple dimensions, which at least include: device environment data, device operation data, user behavior data, and user portrait data;

[0107] A first construction module 202 is used to extract multiple parameter ontologies from data of multiple dimensions and construct a first relationship between the parameter ontologies;

[0108] A second construction module 203, used to construct a second relationship between the plurality of parameter ontologies and the preset scene categories;

[0109] The processing module 204 is used to perform model training according to multiple parameter entities, preset scene categories, the first relationship and the second relationship to obtain a scene recognition model for identifying scene categories.

[0110] In some embodiments, the modeling device 200 may further include:

[0111] A third construction module is used for extracting attributes of multiple parameter ontologies from the data of the multiple dimensions and constructing a third relationship between the attributes and the corresponding parameter ontologies before performing model training according to the multiple parameter ontologies, the preset scene categories, the first relationship and the second relationship to obtain a scene recognition model for identifying the scene categories;

[0112] The processing module 204 may be used to process the plurality of parameter bodies, preset scene categories, attributes, first relationships, second relationships and third relationships using a preset algorithm model to obtain a scene recognition model for identifying scene categories.

[0113] In some embodiments, the processing module 205 may include:

[0114] A first processing submodule is used to matrix-process the multiple parameter bodies, preset scene categories, attributes, first relations, second relations and third relations according to preset rules to obtain an information matrix;

[0115] The second processing submodule is used to process the information matrix using a preset algorithm model to obtain a scene recognition model for identifying scene categories.

[0116] In some embodiments, the first processing submodule may be used to:

[0117] The scene categories are set as rows of a matrix, the parameter bodies and their attributes are set as columns of the matrix, and the first, second and third relations are set as elements of the matrix; or,

[0118] The parameter ontology and its attributes are set as rows of a matrix, the scene categories are set as columns of the matrix, and the first relationship, the second relationship, and the third relationship are set as elements of the matrix.

[0119] In some embodiments, the second processing submodule may be used to:

[0120] The preset algorithm model adopts a learning method of stochastic gradient descent to iteratively process the elements of the matrix until convergence, so as to obtain a scene recognition model for identifying scene categories.

[0121] In some embodiments, the first construction module 202 can be used to: extract multiple parameter ontologies from the data of the multiple dimensions using knowledge graph technology; and infer the first relationship between the parameter ontologies using knowledge reasoning technology.

[0122] In some embodiments, when using knowledge reasoning technology to infer the first relationship between the parameter ontologies, the first construction module 202 may be further used to:

[0123] A binary set between multiple parameter entities is constructed; a feature vector is constructed for each binary set; and the feature vector is classified to determine a first relationship between two elements in the binary set.

[0124] As can be seen from the above, the modeling device 200 provided in the embodiment of the present application obtains data of multiple dimensions; extracts multiple parameter ontologies from the data of multiple dimensions, and constructs a first relationship between each parameter ontology; constructs a second relationship between multiple parameter ontologies and preset scene categories; performs processing model training according to multiple parameter ontologies, preset scene categories, first relationships and second relationships to obtain a scene recognition model for identifying scene categories. This solution can fully utilize multi-dimensional information, so that the scene categories finally constructed have strong robustness and high accuracy. At the same time, the personalized panoramic view recognition model constructed by knowledge graph technology can make the finally identified scene categories better reflect the user's preferences, making the finally identified scene categories more personalized, which helps to provide users with more personalized intelligent services.

[0125] The embodiment of the present application also provides an electronic device. The electronic device may be a smart phone, a tablet computer, a gaming device, an AR (Augmented Reality) device, a car, a data storage device, an audio playback device, a video playback device, a notebook, a desktop computing device, a wearable device such as a watch, glasses, a helmet, an electronic bracelet, an electronic necklace, an electronic clothing, and the like.

[0126] refer to Figure 7 , Figure 7 The first structural diagram of the electronic device 300 provided in the embodiment of the present application is shown in FIG.

[0127] The processor 301 is the control center of the electronic device 300. It uses various interfaces and lines to connect various parts of the entire electronic device. It executes various functions of the electronic device and processes data by running or calling computer programs stored in the memory 302, and calling data stored in the memory 302, thereby monitoring the electronic device as a whole.

[0128] In this embodiment, the processor 301 in the electronic device 300 loads instructions corresponding to one or more computer program processes into the memory 302 according to the following steps, and the processor 301 runs the computer program stored in the memory 302 to implement various functions:

[0129] Acquire data of multiple dimensions, wherein the data of multiple dimensions at least includes: environment data of the device, device operation data, user behavior data, and user portrait data;

[0130] Extracting multiple parameter ontologies from the data of the multiple dimensions, and constructing first relationships between the parameter ontologies;

[0131] constructing a second relationship between a plurality of parameter ontologies and preset scene categories;

[0132] Model training is performed according to multiple parameter entities, preset scene categories, first relationships and second relationships to obtain a scene recognition model for identifying scene categories.

[0133] In some embodiments, before training based on the plurality of parameter ontologies, the preset scene categories, the first relationship and the second relationship to obtain a scene recognition model for identifying the scene category, the processor 301 performs the following steps:

[0134] Extracting attributes of multiple parameter entities from the data of the multiple dimensions;

[0135] Constructing a third relationship between the attribute and the corresponding parameter ontology;

[0136] When training is performed according to the plurality of parameter entities, the preset scene categories, the first relationship and the second relationship to obtain a scene recognition model for identifying the scene category, the processor 301 performs the following steps:

[0137] The plurality of parameter bodies, preset scene categories, attributes, first relationships, second relationships and third relationships are processed using a preset algorithm model to obtain a scene recognition model for identifying scene categories.

[0138] In some embodiments, when the preset algorithm model is used to process the multiple parameter entities, preset scene categories, attributes, first relationships, second relationships, and third relationships to obtain a scene recognition model for identifying scene categories, the processor 301 further performs the following steps:

[0139] According to preset rules, the plurality of parameter bodies, preset scene categories, attributes, first relationships, second relationships and third relationships are matrixed to obtain an information matrix;

[0140] The information matrix is ​​processed using a preset algorithm model to obtain a scene recognition model for identifying scene categories.

[0141] In some embodiments, when the plurality of parameter bodies, preset scene categories, attributes, first relationships, second relationships, and third relationships are matrixed according to preset rules to obtain an information matrix, the processor 301 performs the following steps:

[0142] The scene categories are set as rows of a matrix, the parameter bodies and their attributes are set as columns of the matrix, and the first, second and third relations are set as elements of the matrix; or,

[0143] The parameter ontology and its attributes are set as rows of a matrix, the scene categories are set as columns of the matrix, and the first relationship, the second relationship, and the third relationship are set as elements of the matrix.

[0144] In some embodiments, when the information matrix is ​​processed using a preset algorithm model to obtain a panoramic view recognition model, the processor 301 performs the following steps:

[0145] The learning method of stochastic gradient descent is adopted through a preset algorithm model to iteratively process the elements of the matrix until convergence, thereby obtaining a scene recognition model for identifying scene categories.

[0146] In some embodiments, when extracting multiple parameter ontologies from the panoramic data and constructing first relationships between the parameter ontologies, the processor 301 performs the following steps:

[0147] Extracting multiple parameter ontologies from the panoramic data using knowledge graph technology;

[0148] Knowledge reasoning technology is used to infer the first relationship between each parameter ontology.

[0149] In some embodiments, when using knowledge reasoning technology to infer the first relationship between the parameter ontologies, the processor 301 performs the following steps:

[0150] Construct a set of two-tuples between multiple parameter ontologies;

[0151] Construct a feature vector for each set of two-tuples;

[0152] The feature vector is classified to determine a first relationship between two elements in the two-tuple set.

[0153] In this embodiment, the processor 301 in the electronic device 300 may also load instructions corresponding to the processes of one or more computer programs into the memory 302 according to the following steps, and the processor 301 runs the computer program stored in the memory 302, thereby realizing the following functions:

[0154] Get data of multiple dimensions in the current scene;

[0155] The data of the multiple dimensions are processed according to a pre-trained scene recognition model to identify the current scene category, wherein the scene recognition model is trained according to a reference ontology in the data of the multiple dimensions under different scenes, a first relationship between each parameter ontology, a preset scene category, and a second relationship between multiple parameter ontologies and the preset scene category.

[0156] The memory 302 can be used to store computer programs and data. The computer programs stored in the memory 302 contain instructions that can be executed in the processor. The computer programs can form various functional modules. The processor 301 executes various functional applications and data processing by calling the computer programs stored in the memory 302.

[0157] In some embodiments, reference Figure 8 , Figure 8 A second structural diagram of the electronic device 300 provided in an embodiment of the present application.

[0158] The electronic device 300 further includes: a display screen 303, a control circuit 304, an input unit 305, a sensor 306 and a power supply 307. The processor 301 is electrically connected to the display screen 303, the control circuit 304, the input unit 305, the sensor 306 and the power supply 307 respectively.

[0159] The display screen 303 may be used to display information input by a user or information provided to a user and various graphical user interfaces of the electronic device. These graphical user interfaces may be composed of images, texts, icons, videos and any combination thereof.

[0160] The control circuit 304 is electrically connected to the display screen 303 and is used to control the display screen 303 to display information.

[0161] The input unit 305 can be used to receive input numbers, character information or user feature information (such as fingerprints), and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control. The input unit 305 can include a fingerprint recognition module.

[0162] The sensor 306 is used to collect information of the electronic device itself, the user's information, or the external environment information. For example, the sensor 306 may include 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, a heart rate sensor, and other sensors.

[0163] The power supply 307 is used to supply power to various components of the electronic device 300. In some embodiments, the power supply 307 may be logically connected to the processor 301 through a power management system, so that the power management system can manage charging, discharging, power consumption, and other functions.

[0164] although Figure 8 Not shown, the electronic device 300 may also include a camera, a Bluetooth module, etc., which will not be described in detail here.

[0165] As can be seen from the above, an embodiment of the present application provides an electronic device, which performs the following steps: obtaining data of multiple dimensions, the data of multiple dimensions at least including: environmental data of the device, device operation data, user behavior data, and user portrait data; extracting multiple parameter ontologies from the data of multiple dimensions, and constructing a first relationship between each parameter ontology; constructing a second relationship between multiple parameter ontologies and preset scene categories; performing model training based on multiple parameter ontologies, preset scene categories, first relationships, and second relationships to obtain a scene recognition model. This solution can fully utilize multi-dimensional information, so that the scene categories finally constructed have strong robustness and high accuracy. At the same time, the personalized panoramic view recognition model constructed by knowledge graph technology can make the scene categories finally identified better reflect the user's preferences, making the scene categories finally identified more personalized, which helps to provide users with more personalized intelligent services.

[0166] An embodiment of the present application further provides a storage medium, in which a computer program is stored. When the computer program runs on a computer, the computer executes the modeling method described in any of the above embodiments.

[0167] For example, in some embodiments, when the computer program is run on a computer, the computer performs the following steps:

[0168] Acquire data of multiple dimensions, wherein the data of multiple dimensions at least includes: environment data of the device, device operation data, user behavior data, and user portrait data;

[0169] Extracting multiple parameter ontologies from the data of the multiple dimensions, and constructing first relationships between the parameter ontologies;

[0170] Constructing a second relationship between the plurality of parameter ontologies and the preset scene categories;

[0171] Model training is performed according to the multiple parameter bodies, the preset scene categories, the first relationship and the second relationship to obtain a scene recognition model for identifying scene categories.

[0172] For another example, in some embodiments, when the computer program is run on a computer, the computer performs the following steps:

[0173] Get data of multiple dimensions in the current scene;

[0174] The data of the multiple dimensions are processed according to a pre-trained scene recognition model to identify the current scene category, wherein the scene recognition model is trained according to a reference ontology in the data of the multiple dimensions under different scenes, a first relationship between each parameter ontology, a preset scene category, and a second relationship between multiple parameter ontologies and the preset scene category.

[0175] It should be noted that, a person skilled in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing related hardware through a computer program, and the computer program can be stored in a computer-readable storage medium, and the storage medium can include but is not limited to: read-only memory (ROM), random access memory (RAM), disk or optical disk, etc.

[0176] The above is a detailed introduction to the modeling method, device, storage medium, electronic device and scene recognition method provided in the embodiments of the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method and core idea of ​​the present application; at the same time, for those skilled in the art, according to the idea of ​​the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. A modeling method, characterized in that: The modeling method comprises: Acquire data of multiple dimensions, wherein the data of multiple dimensions at least includes: environment data of the device, device operation data, user behavior data, and user portrait data; Extracting multiple parameter ontologies from the data of the multiple dimensions, and constructing first relationships between the parameter ontologies; Constructing a second relationship between the plurality of parameter ontologies and the preset scene categories; Extracting attributes of multiple parameter entities from the data of the multiple dimensions; Constructing a third relationship between the attribute and the corresponding parameter ontology; The plurality of parameter bodies, the preset scene categories, the attributes, the first relationship, the second relationship and the third relationship are processed using a preset algorithm model to obtain a scene recognition model for identifying the scene category.

2. The modeling method according to claim 1, characterized in that: The method of using a preset algorithm model to process the plurality of parameter bodies, the preset scene categories, the attributes, the first relationship, the second relationship, and the third relationship to obtain a scene recognition model for identifying scene categories includes: According to a preset rule, the plurality of parameter bodies, the preset scene categories, the attributes, the first relationship, the second relationship and the third relationship are matrixed to obtain an information matrix; The information matrix is ​​processed using a preset algorithm model to obtain a scene recognition model for identifying scene categories.

3. The modeling method according to claim 2, characterized in that: The method of processing the plurality of parameter bodies, the preset scene categories, the attributes, the first relationship, the second relationship and the third relationship into a matrix according to the preset rules to obtain an information matrix includes: The preset scene categories are set as rows of a matrix, the parameter bodies and their attributes are set as columns of the matrix, and the first relationship, the second relationship, and the third relationship are set as elements of the matrix; or, The parameter body and its attributes are set as rows of a matrix, the preset scene categories are set as columns of the matrix, and the first relationship, the second relationship, and the third relationship are set as elements of the matrix.

4. The modeling method according to claim 2, characterized in that: The method of using a preset algorithm model to process the information matrix to obtain a scene recognition model for identifying scene categories includes: The preset algorithm model adopts a learning method of stochastic gradient descent to iteratively process the elements of the matrix until convergence, thereby obtaining a scene recognition model for identifying scene categories.

5. The modeling method according to claim 1, characterized in that: The extracting a plurality of parameter ontologies from the data of the plurality of dimensions and constructing a first relationship between the parameter ontologies comprises: Extracting multiple parameter ontologies from the data of the multiple dimensions using knowledge graph technology; Knowledge reasoning technology is used to infer the first relationship between each parameter ontology.

6. The modeling method according to claim 5, characterized in that: The method of using knowledge reasoning technology to infer the first relationship between the parameter ontologies includes: Constructing a set of two-tuples between the plurality of parameter ontologies; Construct a feature vector for each set of two-tuples; The feature vector is classified to determine a first relationship between two elements in the two-tuple set.

7. A scene recognition method, characterized in that: The scene recognition method comprises: Acquire data of multiple dimensions in the current scene, wherein the data of multiple dimensions at least includes: environmental data of the device, device operation data, user behavior data, and user portrait data; The data of the multiple dimensions are processed according to a pre-trained scene recognition model to identify the current scene category, wherein the scene recognition model uses a preset algorithm model to process the parameter bodies in the data of the multiple dimensions under different scenes, the first relationship between the parameter bodies, the preset scene category, the second relationship between the multiple parameter bodies and the preset scene category, the attributes of the multiple parameter bodies in the data of the multiple dimensions and the third relationship between the attributes and the parameter bodies to which they belong.

8. A modeling device, characterized in that: The modeling device comprises: An acquisition module, used to acquire data of multiple dimensions, wherein the data of multiple dimensions at least includes: environmental data of the device, device operation data, user behavior data, and user portrait data; A first construction module, used to extract multiple parameter ontologies from the data of the multiple dimensions, and construct a first relationship between the parameter ontologies; A second construction module, used to construct a second relationship between the plurality of parameter ontologies and the preset scene categories; A third construction module, used to extract attributes of multiple parameter ontologies from the data of the multiple dimensions, and to construct a third relationship between the attributes and the corresponding parameter ontologies; The processing module is used to use a preset algorithm model to process the multiple parameter bodies, the preset scene categories, the attributes, the first relationship, the second relationship and the third relationship to obtain a scene recognition model for identifying the scene category.

9. A storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the computer program implements the steps of the method according to any one of claims 1 to 6, or is used to execute the steps of the method according to claim 7.

10. An electronic device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the processor implements the steps of the method according to any one of claims 1 to 6, or is used to execute the steps of the method according to claim 7.