Information processing method and apparatus for a server
By acquiring scene information and user attribute information, and combining them with instructions to determine the model, the most frequently issued instructions by users within a historical time period are selected. This solves the problem of inaccurate speech recognition in noisy environments and improves the accuracy of terminal device instruction execution.
Patent Information
- Application Number
- CN201711097918.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2017-11-09
- Publication Date
- 2026-01-16
- Estimated Expiration
- 2037-11-09
AI Technical Summary
In noisy environments, speech recognition technology may produce inaccurate results, causing user commands to fail to be executed accurately.
The system obtains scene information of the target location and user attribute information of the terminal device from the server, determines the model by combining the instructions, selects the instructions issued by the user most frequently within a specified historical time period, and sends alternative instructions to the terminal device to improve accuracy.
It increases the richness of stored instructions on terminal devices and improves the accuracy of instruction execution, especially in noisy environments where it can effectively identify user intent.
Smart Images

Figure CN110020219B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] Embodiments of the present application relate to the technical field of computer, in particular to the technical field of Internet, and more particularly to an information processing method and device for a server. BACKGROUND
[0002] In the prior art, the instruction issued by a user can only be determined through recognition technology such as voice recognition. If the surrounding environment is very noisy when the user issues the instruction, the voice recognition result can be inaccurate. SUMMARY
[0003] Embodiments of the present application provide an information processing method and device.
[0004] In a first aspect, embodiments of the present application provide an information processing method for a server, the server being in communication connection with a terminal device, the method comprising: obtaining scene information of a target location, and determining preset scene information matched with the scene information as target scene information; obtaining attribute information of a user of the terminal device, and obtaining a last issued instruction of the user to the terminal device; based on the target scene information, the obtained attribute information and the last issued instruction, selecting at least one instruction from instructions issued by users in a specified user set within a specified historical time period in an order from more to less of the number of times of issuing the instructions by the users; and sending the selected instruction to the terminal device.
[0005] In some embodiments, the scene information comprises a date, a time and weather; and the preset scene information comprises a preset date interval, a preset time interval and a preset weather.
[0006] In some embodiments, based on the target scene information, the obtained attribute information and the last issued instruction, selecting a preset number of instructions from the instructions issued by the users in the specified user set within the specified historical time period in the order from more to less of the number of times of issuing the instructions by the users comprises: inputting the obtained attribute information, the preset date interval, the preset time interval, the preset weather and the last issued instruction matched with the scene information into a previously obtained instruction determination model to obtain at least one instruction issued by the users in the specified user set within the specified historical time period and the number of times of issuing each instruction in the at least one instruction, wherein the instruction determination model is used to represent a corresponding relationship between the scene information, the attribute information of the user, the last issued instruction of the user, the instructions issued by the users in the specified user set within the specified historical time period and the number of times of issuing the instructions; and selecting the preset number of instructions from the obtained at least one instruction in the order from more to less of the number of times of issuing the instructions by the users.
[0007] In some embodiments, based on the target scene information, the obtained attribute information and the last issued instruction, the instructions issued by the users in the specified user set within the specified historical time period are sorted in descending order of the number of times of issuing instructions, and a preset number of instructions are selected, including: inputting the obtained attribute information, the scene information matched with the preset date interval, the preset time interval, the preset weather and the last issued instruction into the previously obtained instruction determination model to obtain a preset number of target instructions and the number of times of issuing each target instruction in the instructions issued by the users in the specified user set within the specified historical time period in descending order of the number of times of issuing instructions, wherein the instruction determination model is used to represent the correspondence between the scene information, the attribute information of the user, the last issued instruction of the user to the terminal device and the preset number of target instructions and the number of times of issuing each target instruction in the instructions issued by the users in the specified user set within the specified historical time period in descending order of the number of times of issuing instructions.
[0008] In some embodiments, the server is in communication connection with the first terminal device, and the method further includes: obtaining a target instruction issued by a first target user from the first terminal device; determining the time, date and weather of the first target location; determining a preset time interval matching the time of the first target location as a target time region, determining a preset date interval matching the date of the first target location as a target date interval, and determining a preset weather matching the weather of the first target location as a target preset weather; obtaining attribute information of the first target user, and obtaining the last issued instruction of the terminal device by the first target user; inputting the determined target time interval, target date interval, target weather, attribute information of the first target user and the last issued instruction of the first target user into the previously obtained instruction determination model to obtain at least one instruction issued by the users in the specified user set within the specified historical time period and the number of times of issuing each instruction in the at least one instruction, wherein the instruction determination model is used to represent the correspondence between the scene information, the attribute information of the user, the last issued instruction of the user to the terminal device and the preset number of target instructions and the number of times of issuing each target instruction in the instructions issued by the users in the specified user set within the specified historical time period in descending order of the number of times of issuing instructions; in response to determining that the at least one instruction includes the target instruction, updating the number of times of issuing the target instruction by the users in the specified user set.
[0009] In some embodiments, the selected instruction is sent to the terminal device, including: sending the selected instruction to the terminal device storing the sentence instruction library, wherein the terminal device stores the target instruction in the sentence instruction library, and the instructions in the sentence instruction library are alternative instructions of the voice recognition result or the lip recognition result.
[0010] In a second aspect, an information processing apparatus for a server is provided. The server is communicatively connected to a terminal device. The apparatus includes an obtaining unit configured to obtain scene information of a target location, and determine preset scene information matched with the scene information as target scene information; an instruction obtaining unit configured to obtain attribute information of a user of the terminal device, and obtain a last issued instruction of the user to the terminal device; a selecting unit configured to select at least one instruction from instructions issued by users in a specified user set within a specified historical time period in an order from more to less of the number of times of issuing the instructions based on the target scene information, the obtained attribute information, and the last issued instruction; and a sending unit configured to send the selected instruction to the terminal device.
[0011] In some embodiments, the scene information includes a date, a time, and weather; and the preset scene information includes a preset date interval, a preset time interval, and a preset weather.
[0012] In some embodiments, the selecting unit includes an input module configured to input the obtained attribute information, the scene information matched preset date interval, preset time interval, preset weather, and the last issued instruction into a previously obtained instruction determination model to obtain at least one instruction issued by a user in the specified user set within the specified historical time period and the number of times of issuing each instruction in the at least one instruction, wherein the instruction determination model is used to represent a corresponding relationship between the scene information, the attribute information of the user, the last issued instruction of the user, and the instruction issued by the user in the specified user set within the specified historical time period, and the number of times of issuing the instruction; and a first selecting module configured to select a preset number of instructions from the obtained at least one instruction in an order from more to less of the number of times of issuing the instructions.
[0013] In some embodiments, the selecting unit includes a second selecting module configured to input the obtained attribute information, the scene information matched preset date interval, preset time interval, preset weather, and the last issued instruction into a previously obtained instruction determination model to obtain a preset number of target instructions selected in an order from more to less of the number of times of issuing the instructions from the instructions issued by the user in the specified user set within the specified historical time period and the number of times of issuing each target instruction, wherein the instruction determination model is used to represent a corresponding relationship between the scene information, the attribute information of the user, the last issued instruction of the user, and the preset number of target instructions selected in an order from more to less of the number of times of issuing the instructions from the instructions issued by the user in the specified user set within the specified historical time period, and the number of times of issuing each target instruction.
[0014] In some embodiments, the server is communicatively connected with the first terminal device, and the apparatus further comprises: a target obtaining unit configured to obtain a target instruction issued by a first target user from the first terminal device; a determination unit configured to determine a time, a date and a weather of the first target location; a region determination unit configured to determine a preset time interval matching the time of the first target location as a target time region, determine a preset date interval matching the date of the first target location as a target date region, and determine a preset weather matching the weather of the first target location as a target preset weather; an attribute obtaining unit configured to obtain attribute information of the first target user, and obtain a last instruction issued by the first target user to the terminal device; a number of times determination unit configured to input the determined target time region, the target date region, the target weather, the attribute information of the first target user and the last instruction issued by the first target user into a previously obtained instruction determination model to obtain at least one instruction issued by a user in a specified user set in a specified historical time period and a number of times of issuing each instruction in the at least one instruction, wherein the instruction determination model is used to represent a corresponding relationship between scene information, attribute information of a user, a last instruction issued by the user to a terminal device, and a preset number of target instructions selected in descending order of a number of times of issuing from instructions issued by the user in the specified historical time period in the specified user set and a number of times of issuing each target instruction; and an updating unit configured to update a number of times of issuing the target instruction by the user in the specified user set in response to determining that the at least one instruction includes the target instruction.
[0015] In some embodiments, the sending unit is further configured to: send the selected instruction to a terminal device storing a sentence instruction library, wherein the terminal device stores the target instruction in the sentence instruction library, and the instruction in the sentence instruction library is an alternative instruction of the voice recognition result or the lip movement recognition result.
[0016] In a third aspect, an embodiment of the present application provides a server, comprising: one or more processors; a storage apparatus configured to store one or more programs, when the one or more programs are executed by the one or more processors, the one or more processors implement a method in any embodiment of the information processing method for a server.
[0017] In a fourth aspect, an embodiment of the present application provides a computer readable storage medium, which stores a computer program, when the computer program is executed by a processor, the computer program implements a method in any embodiment of the information processing method for a server.
[0018] The information processing method and apparatus for a server provided in this application embodiment obtains scene information of a target location and determines preset scene information matching the scene information as the target scene information. Then, it obtains the attribute information of the user of the terminal device and the last instruction issued by the user to the terminal device. Next, based on the target scene information, the obtained attribute information, and the last issued instruction, it selects at least one instruction from the instructions issued by the user within a specified historical time period in a specified user set, in descending order of the number of times the instruction was issued. Finally, it sends the selected instruction to the terminal device. This application embodiment increases the richness of instructions stored on the terminal device. Attached Figure Description
[0019] Other features, objects, and advantages of this application will become more apparent from the following detailed description of non-limiting embodiments with reference to the accompanying drawings:
[0020] Figure 1 This is an exemplary system architecture diagram to which this application can be applied;
[0021] Figure 2 This is a flowchart of one embodiment of the information processing method for a server according to this application;
[0022] Figure 3 This is a schematic diagram of an application scenario of the information processing method for a server according to this application;
[0023] Figure 4 This is a flowchart of yet another embodiment of the information processing method for a server according to this application;
[0024] Figure 5 This is a flowchart of yet another embodiment of the information processing method for a server according to this application;
[0025] Figure 6 This is a schematic diagram of a structure of an embodiment of an information processing apparatus for a server according to the present application;
[0026] Figure 7 This is a schematic diagram of the structure of a computer system suitable for implementing the server embodiments of this application. Detailed Implementation
[0027] The present application will now be described in further detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and not intended to limit it. Furthermore, it should be noted that, for ease of description, only the parts relevant to the invention are shown in the accompanying drawings.
[0028] It should be noted that the embodiments and the features in the embodiments in the present application can be combined with each other without conflict. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0029] Figure 1 An exemplary system architecture 100 is shown, to which embodiments of the information processing method for a server or the information processing apparatus for a server of the present application can be applied.
[0030] As shown in Figure 1 The system architecture 100 can include terminal devices 101, 102, 103, a network 104 and a server 105. The network 104 is a medium to provide a communication link between the terminal devices 101, 102, 103 and the server 105. The network 104 can include various connection types, such as wired, wireless communication links or optical fiber cables, etc.
[0031] A user can use the terminal devices 101, 102, 103 to interact with the server 105 through the network 104 to receive or send messages, etc. Various communication client applications can be installed on the terminal devices 101, 102, 103, such as instant messaging tools, voice processing software, etc.
[0032] The terminal devices 101, 102, 103 can be various electronic devices with voice receiving and processing functions, including but not limited to smart speakers, smart phones, tablet computers, e-book readers, MP3 (Moving Picture Experts Group Audio Layer III) players, MP4 (Moving Picture Experts Group Audio Layer IV) players, laptop computers and desktop computers, etc.
[0033] The server 105 can be a server providing various services, such as a background server providing support on the terminal devices 101, 102, 103. The background server can analyze and process received scene information and other data, and feed back the processing results (such as selected instructions) to the terminal devices.
[0034] It should be noted that the information processing method for a server provided by the embodiments of the present application is generally executed by the server 105, and accordingly, the information processing apparatus for a server is generally provided in the server 105.
[0035] It should be understood that the number of terminal devices, networks and servers in Figure 1 is only illustrative. Any number of terminal devices, networks and servers can be provided according to implementation needs.
[0036] With reference to both Figure 2 , a flow 200 of one embodiment of the information processing method for a server according to the present application is shown. The information processing method for a server comprises the following steps:
[0037] In step 201, scene information of a target place is acquired, and preset scene information matching the scene information is determined as target scene information.
[0038] In this embodiment, the server is in communication connection with the terminal device. The server on which the information processing method for a server is running can acquire scene information of a target place through wired connection or wireless connection, and then determine preset scene information matching the acquired scene information as target scene information. The target place refers to any place determined by human or determined by machine equipment. The scene information refers to various information in the scene where the target place is located, which is usually the current scene information of the target place, and can also be the scene information of the target place at a certain historical time. The target scene information refers to the determined scene information. The preset scene information refers to preset scene information, which can be multiple scene information. The matching of the scene information and the preset scene information refers to that the content of the scene information conforms to the preset scene information. For example, the scene information is 10 o'clock, the preset scene information includes morning, afternoon and evening, and the matching preset scene information is morning. The scene information is 30℃, and the humidity is 80%, and the matching preset scene information is hot and humid.
[0039] In some optional implementation manners of this embodiment, the scene information comprises date, time and weather; and the preset scene information comprises preset date interval, preset time interval and preset weather.
[0040] In this embodiment, the preset date interval is an interval segment of date set in advance, such as the Spring Festival period or the weekend. The preset time interval is an interval segment of time set in advance, such as morning or evening. The preset weather can be hot and humid, cold, dry, etc.
[0041] In step 202, attribute information of a user of the terminal device is acquired, and the last issued instruction of the user to the terminal device is acquired.
[0042] In the embodiment, the server obtains the attribute information of the user of the terminal device, and obtains the last instruction issued by the user to the terminal device. The attribute information refers to the information reflecting the nature of the property. The user here refers to the user of the terminal device. The terminal device is provided with a voice receiving module, and can receive the instruction issued by the user. The instruction here can be issued in various forms, such as voice, lip language or text input, etc. The user can issue multiple instructions to the terminal device, and the server here obtains the instruction issued by the user at the last time.
[0043] In step 203, based on the target scene information, the obtained attribute information and the last issued instruction, at least one instruction is selected from the instructions issued by the users in the specified user set within the specified historical time period, in the order of the number of times of issuing the instructions by the users from more to less.
[0044] In the embodiment, the server selects at least one instruction from the instructions issued by the users in the specified user set within the specified historical time period, based on the determined target scene information, the obtained attribute information and the last issued instruction by the user. Specifically, the instructions can be selected in the order of the number of times of issuing the instructions by the users from more to less. The specified user set can be composed of multiple users, and the range of the users is artificially set or set by the machine according to a set of logic. For example, it can be a set of users using the same type of terminal device, or a set of users using the same type of terminal device within a certain geographical area. The specified historical time period is a period of time that has passed and is artificially set or set by the machine according to a set of logic, such as the last month or yesterday, etc.
[0045] The instruction can be issued multiple times by the user, or can be issued by multiple users. Each instruction has a corresponding number of times of issuing the instruction by the user. For example, the number of times of issuing the instruction "play music" is 6450, and the number of times of issuing the instruction "increase temperature" is 2032. When the selection is performed according to the number of times of issuing the instruction by the user, it is not limited to a specific user, but is performed for each user in the specified user set.
[0046] Specifically, instructions can be selected using various methods. For example, the server can possess or obtain from other devices a mapping table of target scene information, attribute information, last issued instructions, and instructions selected in descending order of frequency. This mapping table can also represent the correspondence between target scene information, attribute information, last issued instructions, instructions selected in descending order of frequency, and the number of times each selected instruction was issued. By searching the mapping table using the obtained target scene information, attribute information, and last issued instructions, the corresponding instructions can be found. Alternatively, a data model implemented using a database can be used to determine instructions. For example, a key-value storage data model can be used. The obtained target scene information, attribute information, and last issued instructions can be used as keys, and the corresponding instructions can be output from the model as values based on these keys. Here, the output value of the model can also include the number of times each instruction was issued.
[0047] Step 204: Send the selected instruction to the terminal device.
[0048] In this embodiment, the server sends the selected instruction to the terminal device, so that the terminal device can receive the selected instruction and perform processing such as storage on the instruction.
[0049] See also Figure 3 , Figure 3 This is a schematic diagram illustrating an application scenario of the information processing method for a server according to this embodiment. Figure 3 In the application scenario, server 301 obtains scene information 303 of the target location from local or other electronic devices 302, and determines the preset scene information that matches the scene information 303 as the target scene information 304. Server 301 obtains the user attribute information 305 of the terminal device, and obtains the last instruction issued by the user to the terminal device 306. Based on the target scene information, the obtained attribute information, and the last issued instruction, at least one instruction is selected from the instructions issued by users in the specified user set within a specified historical time period, in descending order of the number of times the instruction was issued by the user 301. Server 301 sends the selected instruction 307 to the terminal device.
[0050] The method provided in this embodiment, by determining and sending instructions to the terminal device, can provide the terminal device with more instructions to choose from, thereby increasing the probability that the provided instructions are those issued by the user. This embodiment increases the richness of the instructions stored in the terminal device and improves the accuracy of the instructions output by the terminal device.
[0051] Further reference Figure 4 This illustrates a flow 400 of yet another embodiment of an information processing method for a server. The flow 400 of this information processing method for a server includes the following steps:
[0052] In step 401, scene information of a target place is acquired, and preset scene information matched with the scene information is determined as target scene information.
[0053] In the embodiment, a server is in communication connection with a terminal device. The server on which the information processing method runs can acquire scene information of a target place through wired connection or wireless connection, and then determine preset scene information matched with the acquired scene information as target scene information. The target place refers to any place determined by human or machine device. The scene information refers to various information in a scene where the target place is located. The target scene information refers to any scene information determined by human or machine device. The preset scene information refers to preset scene information, which can be multiple scene information. The scene information matched with the preset scene information refers to that the content of the scene information is consistent with the preset scene information. For example, the scene information is 10 o'clock, and the matched preset scene information is morning. The scene information is 30℃ and humidity is 80%, and the matched preset scene information is hot and humid.
[0054] In some optional implementation manners of the embodiment, the scene information includes date, time and weather, and the preset scene information includes preset date interval, preset time interval and preset weather.
[0055] In the embodiment, the preset date interval refers to an interval segment of date preset in advance, such as during the Spring Festival or on weekends. The preset time interval refers to an interval segment of time preset in advance, such as morning or evening. The preset weather can be hot and humid, cold, dry, etc.
[0056] In step 402, attribute information of a user of the terminal device is acquired, and a last issued instruction of the user to the terminal device is acquired.
[0057] In the embodiment, the server acquires attribute information of a user of the terminal device, and acquires a last issued instruction of the user to the terminal device. The attribute information refers to information reflecting the nature of the property of things. The user here refers to a device user using the terminal device. The terminal device is provided with a voice receiving module, which can receive an instruction issued by the user. The instruction here can be issued in various forms, such as voice, lip language or text input, etc. The user can have issued multiple instructions to the terminal device, and the server here acquires the instruction issued by the user at the last time.
[0058] In step 403, the acquired attribute information, the preset date interval, the preset time interval, the preset weather matched with the scene information and the last issued instruction are input into the previously acquired instruction determination model, to obtain at least one instruction issued by a user in a specified historical time period in a specified user set and the number of times of issuing each instruction in the at least one instruction.
[0059] In the embodiment, the server can determine the at least one instruction and the number of times of issuing the at least one instruction by using the model. The obtained attribute information, the preset date interval, the preset time interval, the preset weather matched with the scene information, and the last issued instruction can be input into the instruction determination model previously obtained from the local or other electronic device, and the model is output to obtain the at least one instruction issued by the user in the specified user set in the specified historical time period and the number of times of issuing each instruction in the at least one instruction. The instruction determination model is used to represent the corresponding relationship between the scene information, the attribute information of the user, the last issued instruction of the user, and the instruction issued by the user in the specified user set in the specified historical time period, and the number of times of issuing the instruction. The server outputs one instruction determined according to the preset rule corresponding to the input content, and can also output two or more instructions. The instruction determination model is data collected for the user in the specified user set.
[0060] Specifically, the instruction determination model can be a corresponding relationship table, or a data model implemented by a database, and the like. Therefore, the selected instruction can be obtained by using various methods. For example, the server can have or obtain from other devices a corresponding relationship table of the target scene information, the attribute information, the last issued instruction, the instruction selected according to the number of times from more to less, and the number of times of issuing each selected instruction. The obtained target scene information, attribute information, and last issued instruction are searched in the corresponding relationship table, and the corresponding instruction and the number of times of issuing the instruction can be found. Here, all the instructions corresponding to the input can be output, or the instructions are randomly selected from the instructions corresponding to the input and output.
[0061] If the instruction determination model is a data model. The instruction determination model can use a data model based on key-value storage, that is, the database of the data model is a key-value database belonging to a non-relational database. The obtained target scene information, attribute information, and last issued instruction can be used as a key, and based on the key, the corresponding instruction as a value and the number of times of issuing the output instruction by the user can be output from the model.
[0062] In practice, data combination, data indexing, and data storage can be performed in the database of the above data model in the form of key-value pairs. The instruction determination model can be a model that can be learned and trained. It can also be a model that is not obtained by training.
[0063] In some optional implementation manners of the embodiment, the database in the data model can collect data by using the following methods:
[0064] acquire a target instruction issued by a first target user from a terminal device in communication connection with the server; determine a time, a date and weather of the first target location; determine a preset time interval matching the time of the first target location as a target time interval, determine a preset date interval matching the date of the first target location as a target date interval, and determine a preset weather matching the weather of the first target location as a target preset weather; acquire attribute information of the first target user, and acquire a last instruction issued by the first target user to the terminal device; input the determined target time interval, target date interval, target weather, attribute information of the first target user and the last instruction issued by the first target user into the previously acquired instruction determination model to obtain at least one instruction issued by a user in a specified user set in a specified historical time period and a number of times each instruction in the at least one instruction is issued; and in response to determining that the at least one instruction includes the target instruction, update the number of times the target instruction is issued by the user in the specified user set.
[0065] The instruction determination model can realize data collection through the above method to perfect the data in the model. The "first" does not represent the order of arrangement, but is used to clearly define a certain "target user" and "target location". The "first target user" and "first target location" are one of many.
[0066] At step 404, a preset number of instructions are selected from the obtained at least one instruction in descending order of the number of times the user issues the instruction.
[0067] In this embodiment, the server can select a preset number of instructions from the at least one instruction in descending order of the number of times the user issues the instruction. The instructions in the at least one instruction can be sorted according to the number of times the user issues the instruction, and then a preset number of instructions with the largest number of times of issuance in the sorting result can be selected. Alternatively, the number of times of issuance of each instruction can be compared, and a preset number of instructions with a larger number of times of issuance can be obtained.
[0068] At step 405, the selected instructions are sent to the terminal device.
[0069] In this embodiment, the server sends the selected instructions to the terminal device, so that the terminal device can obtain the selected instructions and perform storage and other processing on the instructions.
[0070] This embodiment uses the instruction determination model to output instructions, thereby improving the accuracy of instruction output.
[0071] Further reference is made to Figure 5 which shows a flow 500 of yet another embodiment of the information processing method for a server. The flow 500 of the information processing method for a server includes the following steps:
[0072] Step 501, obtaining a target instruction issued by a first target user from a first terminal device;
[0073] In the embodiment, the server obtains the target instruction issued by the first target user from the first terminal device which has a communication connection with the server.
[0074] It should be noted that in the embodiment, "first" does not represent the order of arrangement, but only one of many.
[0075] Step 502, determining the time, date and weather of the first target location.
[0076] In the embodiment, the server determines the time, date and weather of the first target location.
[0077] Step 503, determining a preset time interval matching the time of the first target location as a target time interval, determining a preset date interval matching the date of the first target location as a target date interval, and determining a preset weather matching the weather of the first target location as a target preset weather.
[0078] In the embodiment, the server determines a preset time interval matching the time of the first target location as a target time interval. And determines a preset date interval matching the date of the first target location as a target date interval. And determines a preset weather matching the weather of the first target location as a target preset weather. The three determination steps can be executed in any execution order.
[0079] Step 504, obtaining attribute information of the first target user, and obtaining the last instruction issued by the first target user to the first terminal device.
[0080] In the embodiment, the server obtains the attribute information of the first target user. In addition, the server obtains the last instruction issued by the first target user to the first terminal device. After obtaining the attribute information and the instruction, the instruction determination model can be input. The two obtaining steps can be executed in any execution order.
[0081] Step 505, inputting the determined target time interval, target date interval, target weather, attribute information of the first target user and the last instruction issued by the first target user into the previously obtained instruction determination model to obtain at least one instruction issued by a user in a specified user set in a specified historical time period and the number of times each instruction in the at least one instruction is issued.
[0082] In this embodiment, the server inputs the determined target time interval, target date interval, target weather, attribute information of the first target user, and the last instruction issued by the first target user into the previously acquired instruction determination model. At least one instruction issued by the user in the specified user set in the specified historical time period and the number of times each instruction in the at least one instruction is issued are output by the instruction determination model. The instruction determination model is used to represent the correspondence between the scene information, the attribute information of the user, the last instruction issued by the user to the terminal device, and the target instructions of a preset number selected in descending order of the number of times from the instructions issued by the users in the specified user set in the specified historical time period and the number of times each target instruction is issued. The embodiment can directly output the instructions of the first preset number of times from the model. The specified historical time period here can be the same as or different from the above.
[0083] Specifically, the instruction determination model can be a correspondence table, or a data model implemented by a database, and the like. Therefore, the selected instructions can be obtained by various methods. For example, the electronic device can have or acquire from other devices the correspondence table of the target scene information, the attribute information, the last instruction issued, and the instructions of a preset number selected in descending order of the number of times and the number of times each selected instruction is issued. The target scene information, the attribute information, and the last instruction issued are used to search in the correspondence table, and the corresponding instructions and the number of times the instructions are issued can be found. If the instruction determination model is a data model, the instruction determination model can be a data model based on key-value storage, that is, the database of the data model is a key-value database belonging to a non-relational database. The target scene information, the attribute information, and the last instruction issued can be used as keys, and the preset number of instructions and the number of times the user issues the output instructions as values can be output from the model based on the keys. The preset number of instructions here are selected in descending order of the number of times.
[0084] In practice, data combination, data indexing, and data storage can be performed in the database of the data model in the form of key-value pairs. The instruction determination model can be a model that can be learned and trained. It can also be a model that is not obtained by training.
[0085] Step 506, in response to determining that the target instruction is included in the at least one instruction, updating the number of times the target instruction is issued by the user in the specified user set.
[0086] In the embodiment, when the server determines that the target instruction is included in the at least one instruction, the server updates the number of times of issuing the target instruction by the user in the specified user set. That is, the existing number of times is added, which is 1 in this embodiment. Through the above method, the instruction determination model can realize data collection to improve the data in the model. The steps 501-506 can be repeatedly executed.
[0087] In step 507, scene information of the target location is obtained, and preset scene information matched with the scene information is determined as target scene information.
[0088] In the embodiment, the server is in communication connection with the terminal device. The information processing method for the server is run on the server. The server can obtain scene information of the target location through wired connection or wireless connection, and then determine preset scene information matched with the obtained scene information as target scene information. The target location refers to any location determined by a human or a machine device. The scene information refers to various information in a scene where the target location is located. The target scene information refers to any scene information determined by a human or a machine device. The preset scene information refers to preset scene information, which can be various scene information. The scene information matched with the preset scene information refers to that the content of the scene information is consistent with the preset scene information. For example, the scene information is 10 o'clock, and the matched preset scene information is morning. The scene information is 30℃ and the humidity is 80%, and the matched scene information is hot and humid.
[0089] In some optional implementations of the embodiment, the scene information includes date, time and weather, and the preset scene information includes preset date interval, preset time interval and preset weather.
[0090] In the embodiment, the preset date interval refers to a preset interval of date, such as the Spring Festival period or the weekend. The preset time interval refers to a preset interval of time, such as morning or evening. The preset weather can be hot and humid, cold, dry, etc.
[0091] In step 508, attribute information of a user of the terminal device is obtained, and the last issued instruction of the user to the terminal device is obtained.
[0092] In the embodiment, the server obtains attribute information of a user of the terminal device, and obtains a last instruction issued by the user to the terminal device. The terminal device can be the first terminal device or another terminal device. The attribute information refers to information reflecting the nature of a thing. The user refers to a user of the terminal device. The terminal device is provided with a voice receiving module and can receive an instruction issued by the user. The instruction can be in various forms, such as voice, lip language or text input, etc. The user can issue multiple instructions to the terminal device, and the server obtains a last instruction issued by the user.
[0093] In step 509, the obtained attribute information, the preset date interval, the preset time interval, the preset weather and the last issued instruction matched with the scene information are input into the previously obtained instruction determination model to obtain a preset number of target instructions in the instructions issued by the users in the specified user set within the specified historical time period in descending order of the number of times of issuance and the number of times of issuance of each target instruction.
[0094] In the embodiment, the server inputs the obtained attribute information, the preset date interval, the preset time interval, the preset weather and the last issued instruction matched with the scene information into the instruction determination model previously obtained from the local or other electronic device, and obtains a preset number of target instructions in the instructions issued by the users in the specified user set within the specified historical time period in descending order of the number of times of issuance and the number of times of issuance of each target instruction from the model.
[0095] In step 510, the selected instruction is sent to the terminal device storing the sentence instruction library.
[0096] In the embodiment, the server sends the selected instruction to the terminal device in step 508. The terminal device stores a sentence instruction library. The sentence instruction library is a database including sentence instructions. Then, the terminal device stores the target instruction in the sentence instruction library, and the instruction in the sentence instruction library is an alternative instruction of a voice recognition result or a lip language recognition result. In this way, when the voice recognition or the lip language recognition does not obtain a recognition result or the voice recognition result or the lip language recognition result is inaccurate, the terminal device can output the selected instruction for the user to select.
[0097] The embodiment utilizes the instruction determination model to output a preset number of instructions according to the number of times of issuance of the instructions, thereby improving the accuracy of the instruction output. Meanwhile, the selected instruction is added to the sentence instruction library of the terminal device, thereby improving the richness of the sentence instructions in the sentence instruction library.
[0098] Further reference is made to Figure 6As an implementation of the method shown in the above figures, the present application provides an embodiment of an information processing device for a server, which corresponds to the method embodiment shown in Figure 2 The device can be applied in various electronic devices such as servers.
[0099] As shown in Figure 6 The information processing device 600 of the embodiment includes an acquisition unit 601, an instruction acquisition unit 602, a selection unit 603, and a sending unit 604. The acquisition unit 601 is configured to acquire scene information of a target location and determine preset scene information matching the scene information as target scene information. The instruction acquisition unit 602 is configured to acquire attribute information of a user of a terminal device and acquire a last issued instruction of the user to the terminal device. The selection unit 603 is configured to select at least one instruction from instructions issued by users in a specified historical time period in a specified user set in descending order of the number of times of issuance of the instructions based on the target scene information, the acquired attribute information, and the last issued instruction. The sending unit 604 is configured to send the selected instruction to the terminal device.
[0100] In the embodiment, the acquisition unit 601 is in communication connection with the terminal device. The server on which the information processing method for a server runs can acquire scene information of a target location through wired connection or wireless connection, and then determine preset scene information matching the acquired scene information as target scene information. The target location refers to any location determined by a human or a machine device. The scene information refers to various information in a scene where the target location is located, which is usually current scene information of the target location, or scene information of the target location at a certain historical time. The target scene information refers to the determined scene information. The preset scene information refers to preset scene information, which can be multiple scene information. The scene information matching the preset scene information refers to the content of the scene information conforming to the preset scene information. For example, the scene information is 10 o'clock, the preset scene information includes morning, afternoon, and evening, and the matching preset scene information is morning. The scene information is 30℃ and the humidity is 80%, and the matching preset scene information is hot and humid.
[0101] In the embodiment, the instruction acquisition unit 602 acquires attribute information of a user of the terminal device and acquires a last issued instruction of the user to the terminal device. The attribute information refers to information reflecting the nature of a thing. The user here refers to a device user using the terminal device. The terminal device is provided with a voice receiving module and can receive an instruction issued by the user. The instruction here can be issued in various forms such as voice, lip language, or text input, etc. The user can have issued multiple instructions to the terminal device, and the instruction acquisition unit 602 here acquires the instruction issued by the user at the last time.
[0102] In the embodiment, the selecting unit 603 selects at least one instruction from the instructions issued by the users in the specified user set within the specified historical time period based on the determined target scene information, the obtained attribute information and the last issued instruction of the user. Specifically, the instructions can be selected in the order of the number of times of issuing the instructions from the user from the most to the least. The specified user set can be composed of multiple users, and the range of the users is artificially set or set by the machine according to a set of logic. For example, the specified user set can be a set of users using the same type of terminal device or a set of users using the same type of terminal device in a certain geographical area. The specified historical time period is a period of time that has passed and is artificially set or set by the machine according to a set of logic, such as the last month or yesterday, and the like.
[0103] In the embodiment, the sending unit 604 sends the selected instruction to the terminal device, so that the terminal device can obtain the selected instruction and perform storage and the like on the instruction.
[0104] In some optional implementation forms of the embodiment, the scene information includes a date, a time and weather, and the preset scene information includes a preset date interval, a preset time interval and a preset weather.
[0105] In some optional implementation forms of the embodiment, the selecting unit includes: an input module configured to input the obtained attribute information, the scene information, the matched preset date interval, the matched preset time interval, the matched preset weather and the last issued instruction into a previously obtained instruction determination model to obtain at least one instruction issued by the user in the specified user set within the specified historical time period and the number of times of issuing each instruction in the at least one instruction, wherein the instruction determination model is used to represent the corresponding relationship among the scene information, the attribute information of the user, the last issued instruction of the user, the instruction issued by the user in the specified user set within the specified historical time period and the number of times of issuing the instruction; and a first selecting module configured to select a preset number of instructions from the obtained at least one instruction in the order of the number of times of issuing the instructions from the user from the most to the least.
[0106] In some optional implementation forms of the embodiment, the selecting unit comprises a second selecting module configured to input the acquired attribute information, the scene information, the matched preset date interval, the preset time interval, the preset weather, and the last issued instruction into a previously acquired instruction determination model to obtain a preset number of target instructions in the instructions issued by the users in the specified user set in the specified historical time period in a descending order of the number of issuances and the number of issuances of each target instruction, wherein the instruction determination model is used to represent a corresponding relationship between the scene information, the attribute information of the user, the last issued instruction of the user to the terminal device, and the preset number of target instructions in the instructions issued by the users in the specified user set in the specified historical time period in the descending order of the number of issuances and the number of issuances of each target instruction.
[0107] In some optional implementation forms of the embodiment, the server is in communication connection with the first terminal device, and the apparatus further comprises: a target acquiring unit configured to acquire the target instruction issued by the first target user from the first terminal device; a determining unit configured to determine the time, date, and weather of the first target location; a region determining unit configured to determine a preset time interval matching the time of the first target location as a target time region, determine a preset date interval matching the date of the first target location as a target date interval, and determine a preset weather matching the weather of the first target location as a target preset weather; an attribute acquiring unit configured to acquire the attribute information of the first target user and acquire the last issued instruction of the first target user to the terminal device; a number determining unit configured to input the determined target time interval, the target date interval, the target weather, the attribute information of the first target user, and the last issued instruction of the first target user into a previously acquired instruction determination model to obtain at least one instruction issued by the users in the specified user set in the specified historical time period and the number of issuances of each instruction in the at least one instruction, wherein the instruction determination model is used to represent a corresponding relationship between the scene information, the attribute information of the user, the last issued instruction of the user to the terminal device, and the preset number of target instructions in the instructions issued by the users in the specified user set in the specified historical time period in the descending order of the number of issuances and the number of issuances of each target instruction; and an updating unit configured to update the number of issuances of the target instruction by the users in the specified user set in response to determining that the at least one instruction includes the target instruction.
[0108] In some optional implementation forms of the embodiment, the sending unit is further configured to send the selected instruction to a terminal device storing a sentence instruction library, wherein the terminal device stores the target instruction in the sentence instruction library, and the instruction in the sentence instruction library is an alternative instruction of the voice recognition result or the lip movement recognition result.
[0109] Figure 7A schematic diagram of a computer device suitable for implementing the server embodiments of this application is shown. Figure 7 As shown, the computer device 700 includes a central processing unit (CPU) 701, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 702 or a program loaded from a storage section 708 into a random access memory (RAM) 703. The RAM 703 also stores various programs and data required for the operation of the device 700. The CPU 701, ROM 702, and RAM 703 are interconnected via a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.
[0110] The following components are connected to the I / O interface 705: an input section 706 including a keyboard, mouse, etc.; an output section 707 including a cathode ray tube (CRT), liquid crystal display (LCD), etc., and speakers, etc.; a storage section 708 including a hard disk, etc.; and a communication section 709 including a network interface card such as a LAN card, modem, etc. The communication section 709 performs communication processing via a network such as the Internet. A drive 710 is also connected to the I / O interface 705 as needed. A removable medium 711, such as a disk, optical disk, magneto-optical disk, semiconductor memory, etc., is installed on the drive 710 as needed so that computer programs read from it can be installed into the storage section 708 as needed.
[0111] In particular, the processes described above with reference to the flow charts can be implemented as a computer software program in accordance with embodiments of the present application. For example, embodiments of the present application include a computer program product which includes a computer program tangibly embodied on a computer readable medium, the computer program containing program code for executing the methods illustrated by the flow charts. In such embodiments, the computer program can be downloaded and installed from a network via the communication section 709 and / or installed from the removable media 711. When the computer program is executed by the central processing unit (CPU) 701, the above-described functions defined in the methods of the present application are performed. Note that the computer readable medium of the present application can be either a computer readable signal medium or a computer readable storage medium or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electric, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of the computer readable storage medium can include, but are not limited to, an electrical connection having one or more wires, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present application, the computer readable storage medium can be any tangible medium that contains or stores a program, which can be used by or in connection with an instruction execution system, apparatus, or device. In the present application, the computer readable signal medium can include a computer readable program code that is embodied on a data signal carrying computer readable program code. Such a propagated signal can take any of a variety of forms, including but not limited to electro-magnetic, optical, or any suitable combination thereof. Computer readable program code embodied on a computer readable signal medium can be transmitted using any appropriate medium, including but not limited to wireless, wire line, optical fiber cable, R.F, etc., or any suitable combination of the foregoing.
[0112] The flowcharts and block diagrams in the drawings illustrate the architecture, functionality, and operation of possible implementations of apparatuses, methods, and computer program products according to various embodiments of the present application. In this regard, each block in the flowcharts or block diagrams can represent a module, a segment, or a portion of code, which comprises one or more executable instructions for implementing the specified logical functions. It should also be noted that in some alternative implementations, the functions noted in the blocks can occur out of the order noted in the figures. For example, two blocks noted in succession can in fact be executed substantially concurrently or can sometimes be executed in reverse order, depending on the functionality involved. It will also be noted that each block of the block diagrams and / or flowcharts, and combinations thereof, can be implemented by dedicated hardware-based apparatuses or by a combination of dedicated hardware-based apparatuses and computer instructions.
[0113] The units described in the embodiments of the present application can be implemented by software, or can be implemented by hardware. The described units can also be arranged in a processor, for example, can be described as: a processor includes an acquisition unit, an instruction acquisition unit, a selection unit and a sending unit. In some cases, the names of these units do not constitute a limitation on the units themselves, for example, the acquisition unit can also be described as: a unit for acquiring scene information of a target location.
[0114] As another aspect, the present application also provides a computer readable medium, which can be included in the apparatus described in the above embodiments, or can exist independently without being assembled into the apparatus. The computer readable medium carries one or more programs, when the one or more programs are executed by the apparatus, the apparatus is caused to: acquire scene information of a target location, determine preset scene information matched with the scene information as target scene information; acquire attribute information of a user of a terminal device, and acquire a last issued instruction of the user to the terminal device; based on the target scene information, the acquired attribute information and the last issued instruction, select at least one instruction from instructions issued by users in a specified user set within a specified historical time period in descending order of the number of times of issuing instructions by the users; and send the selected instruction to the terminal device.
[0115] The above description is only the preferred embodiment of the present application and the explanation of the technical principles. It should be understood by those skilled in the art that the scope of the protection of the present application is not limited to the technical solutions formed by the specific combinations of the above technical features. It should also cover other technical solutions formed by the combinations of the above technical features or their equivalent features without departing from the concept of the present application. For example, the technical solutions formed by the mutual replacement of the above features and the technical features with similar functions disclosed (but not limited to) in the present application.
Claims
1. An information processing method for a server, the server being in communication connection with a terminal device, comprising: obtaining scene information of a target location, determining preset scene information matched with the scene information as target scene information, the scene information including current scene information of the target location; obtaining attribute information of a user of the terminal device, and obtaining a last issued instruction of the user to the terminal device, wherein the attribute information refers to information reflecting the nature of the property; based on the target scene information, the obtained attribute information and the last issued instruction, selecting a preset number of instructions from instructions issued by users in a specified user set within a specified historical time period in descending order of the number of times of issuing instructions by the users; sending the selected instructions to the terminal device, including sending the selected instructions to the terminal device storing a sentence instruction library, wherein the terminal device stores the selected instructions in the sentence instruction library, and the instructions in the sentence instruction library are alternative instructions of voice recognition results or lip recognition results; the preset scene information includes a preset date interval, a preset time interval and a preset weather; the method further comprises: inputting the obtained attribute information, the preset date interval, the preset time interval, the preset weather matched with the scene information and the last issued instruction into a previously obtained instruction determination model to obtain at least one instruction issued by the users in the specified user set within the specified historical time period and the number of times of issuing each instruction in the at least one instruction, wherein the model is a data model or a model capable of learning.
2. The information processing method for a server according to claim 1, wherein the scene information includes a date, a time and a weather.
3. The information processing method for a server according to claim 1, wherein the method further comprises: selecting a preset number of instructions from the obtained at least one instruction in descending order of the number of times of issuing instructions by the users.
4. The information processing method for a server according to claim 1, wherein the method further comprises: input the obtained attribute information, the preset date interval matched with the scene information, the preset time interval, the preset weather, and the last issued instruction into a previously obtained instruction determination model to obtain a preset number of target instructions in the instructions issued by the users in the specified user set in the specified historical time period in descending order of the number of issuances and the number of issuances of each target instruction, wherein the instruction determination model is used to represent a corresponding relationship between scene information, attribute information of a user, a last issued instruction of the user to a terminal device, and a preset number of target instructions in the instructions issued by the users in the specified user set in the specified historical time period in descending order of the number of issuances and the number of issuances of each target instruction.
5. The information processing method for a server according to Claim 1, wherein The server is in communication connection with the first terminal device, and the method further comprises: obtaining a target instruction issued by a first target user from the first terminal device; determining a time, a date, and a weather of the first target location; determining a target time interval matched with the time of the first target location as a target time region, determining a target date interval matched with the date of the first target location as a target date interval, and determining a target preset weather matched with the weather of the first target location as a target preset weather; obtaining attribute information of the first target user, and obtaining a last issued instruction of the first target user to a terminal device; inputting the determined target time interval, the target date interval, the target weather, the attribute information of the first target user, and the last issued instruction of the first target user into a previously obtained instruction determination model to obtain at least one instruction issued by the users in the specified user set in the specified historical time period and the number of issuances of each instruction in the at least one instruction, wherein the instruction determination model is used to represent a corresponding relationship between scene information, attribute information of a user, a last issued instruction of the user to a terminal device, and a preset number of target instructions in the instructions issued by the users in the specified user set in the specified historical time period in descending order of the number of issuances and the number of issuances of each target instruction; in response to determining that the at least one instruction includes the target instruction, updating the number of issuances of the target instruction by the users in the specified user set.
6. An information processing apparatus for a server in communication connection with a terminal device, comprising: an acquisition unit configured to acquire scene information of a target location, and determine preset scene information matched with the scene information as target scene information, wherein the scene information comprises current scene information of the target location; an instruction acquisition unit configured to acquire attribute information of a user of the terminal device, and acquire a last issued instruction of the user to the terminal device, wherein the attribute information refers to information reflecting the nature of a thing. The selecting unit is configured to select a preset number of instructions in an order from more to less of the number of times of issuing the instructions, from the instructions issued by the users in the specified user set within the specified historical time period, based on the target scene information, the obtained attribute information, and the last issued instruction. The sending unit is configured to send the selected instructions to the terminal device, including sending the selected instructions to the terminal device storing a sentence instruction library, wherein the terminal device stores the selected instructions in the sentence instruction library, and the instructions in the sentence instruction library are alternative instructions of voice recognition results or lip movement recognition results. The preset scene information includes a preset date interval, a preset time interval, and a preset weather. The selecting unit includes: The input module is configured to input the obtained attribute information, the preset date interval, the preset time interval, the preset weather matched with the scene information, and the last issued instruction into a previously obtained instruction determination model to obtain at least one instruction issued by the users in the specified user set within the specified historical time period and the number of times of issuing each instruction in the at least one instruction.
7. The information processing apparatus for a server according to claim 6, the scenario information including: Date, time, and weather.
8. The information processing apparatus for a server according to claim 6, the selecting unit further includes: The first selecting module is configured to select a preset number of instructions in an order from more to less of the number of times of issuing the instructions from the obtained at least one instruction. The instruction determination model is used to represent the corresponding relationship among the scene information, the attribute information of the user, the last issued instruction of the user, the instruction issued by the user in the specified user set within the specified historical time period, and the number of times of issuing the instruction.
9. The information processing apparatus for a server according to claim 6, the input module is further configured to: The acquired attribute information, the preset date interval matched by the scene information, the preset time interval, the preset weather, and the last issued instruction are input into the previously acquired instruction determination model to obtain a preset number of target instructions in the instructions issued by the users in the specified user set within a specified historical time period in descending order of the number of issuances and the number of issuances of each target instruction, wherein The instruction determination model is used to represent the corresponding relationship among the scene information, the attribute information of the user, the last issued instruction of the user to the terminal device, the preset number of target instructions selected in an order from more to less of the number of times of issuing the instructions from the instructions issued by the user in the specified user set within the specified historical time period, and the number of times of issuing each target instruction.
10. The information processing apparatus for a server according to claim 6, the server is in communication connection with a first terminal device, and the apparatus further includes: The target obtaining unit is configured to obtain a target instruction issued by a first target user from the first terminal device. The determination unit is configured to determine the time, date, and weather of the first target location. The region determination unit is configured to determine a preset time interval matched with the time of the first target location as a target time region, determine a preset date interval matched with the date of the first target location as a target date interval, and determine a preset weather matched with the weather of the first target location as a target preset weather. The attribute obtaining unit is configured to obtain the attribute information of the first target user and obtain the last issued instruction of the first target user to the terminal device. a number of times determination unit, configured to input the determined target time interval, target date interval, target weather, attribute information of the first target user and the last instruction issued by the first target user into a previously acquired instruction determination model, to obtain at least one instruction issued by a user in the specified user set in a specified historical time period and a number of times each instruction in the at least one instruction is issued, wherein the instruction determination model is used to represent a corresponding relationship between scene information, attribute information of the user, a preset number of target instructions selected in a descending order of a number of times from the target instructions and a number of times each target instruction is issued, from the target instructions and the instructions issued by the user in the specified user set in the specified historical time period, and the target instructions. an update unit, configured to update a number of times the target instruction is issued by the user in the specified user set in response to determining that the target instruction is included in the at least one instruction. 11.A server, comprising: one or more processors; a storage device for storing one or more programs, when the one or more programs are executed by the one or more processors, the one or more processors implement the method of any one of claims 1-5. 12.A computer readable storage medium having stored thereon a computer program, which when executed by a processor, implements the method of any one of claims 1-5.
Citation Information
Patent Citations
Communication method, device and communication system of controlling real-time communication platform
CN103152244A
Remote control method and device
CN103973548A
Control method for intelligent home equipment and cloud server
CN104320480A
Terminal voice broadcasting method, device and terminal voice operation method
CN105206260A
Smart television and voice control method of the smart television
CN105791931A