Virtual character interaction strategy setting method, system and device and medium
By analyzing the software usage time and user interaction records of the device in which the virtual character is located, and optimizing the interaction strategy, the problem that the virtual character interaction strategy cannot meet the user's software usage habits is solved, and the user equipment usage experience is improved.
Patent Information
- Application Number
- CN202411049972.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-01
- Publication Date
- 2024-11-29
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The existing virtual character interaction strategy is limited to the interaction between the user and the virtual character, ignoring the interaction between the user during the use of other software in the device, resulting in the interaction strategy that cannot match the user's software usage habits and affecting the device's usage experience. .
By obtaining the software usage time and user interaction records of the device where the virtual character is located, analyzing and optimizing the interaction strategy, adjusting the interaction mode of the virtual character in different software environments, including hiding or adjusting the location of the virtual character, and according to the software usage curve and interaction frequency Set up personalized interaction strategies.
A personalized strategy for virtual characters to interact with users is realized, ensuring that virtual characters do not interfere with device operations when users use devices, and improving user experience.
Smart Images

Figure CN119045700A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of virtual character interaction technology, and in particular to a method, system, device and medium for setting an interaction strategy of a virtual character. Background Art
[0002] Virtual characters are created through technological means such as modeling, motion capture or AI, with virtual images that have appearance characteristics and behavior patterns, and are presented through display devices; the value created by virtual characters is mainly to break the physical space limitations and provide more immersion, participation and interaction; the interaction strategies of virtual characters mainly include multimodal human-computer interaction, personalized interaction, improvement of social and interactive capabilities, and the application of motion capture technology.
[0003] Existing methods for virtual character interaction usually analyze the interaction behavior between the user and the virtual character, and obtain the user's state information based on the analysis result, so as to make the interaction strategy of the established virtual character more targeted. Although this improved method can make the virtual character more in line with the user's interaction habits when interacting with the user, this improved method is limited to the interaction between the virtual character and the user. Generally, the virtual character exists in the device used by the user. If only the interaction between the virtual character and the user is improved, the user's interaction with the virtual character in the process of using other software in the device will be ignored. For example, in the Chinese patent with publication number CN116009692A, a virtual character is disclosed. A method and device for determining a character interaction strategy. This solution takes into account the state of the user when interacting with the virtual character, thereby improving the real-time, pertinence and accuracy of determining the virtual character interaction strategy. Other improvements in interaction strategies for virtual characters are usually improvements in voice interaction. Although this improvement method can improve the fun of interaction between the virtual character and the user through voice, if the user still needs to interact with the virtual character through voice when using other software in the device, it will still lead to the problem that the virtual character affects the user's device usage because the interaction strategy cannot match the user's software usage habits. In view of this, it is necessary to improve the existing interaction strategy for virtual characters. Summary of the invention
[0004] The present invention aims to solve one of the technical problems in the prior art to at least a certain extent, by proposing a method, system, device and medium for setting an interaction strategy for a virtual character, so as to solve the problem that in the existing improvement method, the interaction strategy is limited to the interaction between the virtual character and the user, and the virtual character generally exists in the device used by the user. If only the interaction between the virtual character and the user is improved, while the interaction of the virtual character in the process of the user using other software in the device is ignored, it will lead to the problem that the virtual character affects the user's device usage because the interaction strategy cannot match the user's software usage habits.
[0005] To achieve the above objectives, in a first aspect, the present application provides a method for setting an interaction strategy of a virtual character, comprising the following steps:
[0006] Acquire the environment device where the virtual character is located, analyze the user's software usage time, and set the first interaction strategy of the virtual character based on the analysis result;
[0007] Obtain user interaction records; use record analysis methods to analyze user interaction records, and obtain optimization strategies based on the analysis results;
[0008] The first interaction strategy is optimized based on the optimization strategy, the optimized first interaction strategy is recorded as the personalized interaction strategy, and the interaction of the virtual character is optimized based on the personalized interaction strategy.
[0009] Furthermore, obtaining the environment device where the virtual character is located and analyzing the user's software usage time includes:
[0010] The device where the avatar is located is recorded as the environment device; the usage time of multiple software used in the environment device within the standard usage cycle is obtained, and all software with usage time not being 0 is marked in descending order as available software KR1 to available software KR n ;
[0011] The standard use cycle is evenly divided into n parts, and the time corresponding to one part is recorded as a single use interval; the single use intervals in the standard use cycle are recorded in order from the beginning to the end as single use intervals DJ1 to single use intervals DJ n ; Establish a plane rectangular coordinate system, recorded as the application analysis coordinate system, where the coordinate points to the right of the origin in the X-axis of the application analysis coordinate system are single-use interval DJ1 to single-use interval DJ n , the unit of the Y-axis is percentage.
[0012] Furthermore, obtaining the environment device where the virtual character is located and analyzing the user's software usage time also includes:
[0013] For any available software KR n1 , get the available software KR n1 The time used in each single use interval DJ is recorded as single use time DY1 to single use time DY n ; Get the software KR available in each single use interval DJ n1 The time when the interface is in the main interface of the environmental device is recorded as the main use time ZY1 to the main use time ZY n ; For any single use interval DJn1 , set the main usage time ZY n1 Divide by the single use time DJ n1 The value multiplied by 100% is recorded as the single main percentage; obtain the single main percentage corresponding to each single use interval DJ, and mark all single use intervals DJ and their corresponding single main percentages in the application analysis coordinate system, and record the curve formed by the marked points as the software use curve KQ n1 , where n1 is a positive integer less than or equal to n and greater than or equal to 1;
[0014] Obtain all software usage curves KQ corresponding to the available software KR; when the software usage curve KQ of the available software KR is a straight line with Y=100%, the available software KR is recorded as fully invested software; when there is a point with a ordinate of 100% in the software usage curve KQ of the available software KR and the software usage curve KQ is not a straight line with Y=100%, the available software KR is recorded as semi-invested software; when there is no point with a ordinate equal to 100% in the software usage curve KQ of the available software KR, the available software KR is recorded as shallowly invested software.
[0015] Further, setting a first interaction strategy of the virtual character based on the analysis result includes:
[0016] When the user uses the environment device and calls out the virtual character, the interface where the virtual character is located is recorded as the real-time interactive interface; the first interactive strategy includes: recording the available software KR started in the real-time interactive interface of the environment device at this time as the environment software HR; when there is any fully invested software in the environment software HR, obtaining the size data of the software window of the fully invested software and the size data of the main interface window of the environment device, when the size data of the software window of the fully invested software is equal to the data of the main interface window of the environment device, hiding the virtual character in the main interface of the environment device; when the size data of the software window of the fully invested software is smaller than the size data of the main interface window of the environment device, adjusting the position of the virtual character to the area outside the software window of the fully invested software in the main interface of the environment device, wherein the size data includes length data and width data;
[0017] When the devices started in the real-time interactive interface of the environment device at this time are only semi-engagement software and shallow-engagement software, the maximum number of times the virtual character can actively interact within a short usage interval is recorded as the limit frequency; based on the number of semi-engagement software and shallow-engagement software started in the device environment, the moderate frequency algorithm is used to obtain the frequency ratio, and the moderate frequency algorithm includes: Wherein, F is the frequency ratio, α1 is the semi-investment coefficient, α2 is the shallow investment coefficient, f1 is the number of semi-investment software launched in the environmental equipment, f2 is the number of shallow investment software launched in the environmental equipment, and f is the sum of f1 and f2; the value obtained by multiplying the frequency ratio by the limit frequency and rounding down is recorded as the real-time frequency; the maximum number of active interactions of the virtual character in each short usage interval in the environmental equipment at this time is set as the real-time frequency.
[0018] Further, obtaining the user's interaction record; using the record analysis method to analyze the user's interaction record includes:
[0019] Obtain the interaction record between the user and the virtual character after the virtual character uses the first interaction strategy for a standard use cycle, use the record analysis method to analyze the interaction record, and obtain the optimization strategy based on the analysis result; the record analysis method includes: recording the time when the user uses the full-investment software in the environmental equipment as the full-investment time, dividing the full-investment time into short usage intervals, and recording the divided time periods as the full-investment sub-segments; when there is interaction between the user and the virtual character within the full-investment time in the interaction record, obtain the maximum number and minimum number of interactions between the user and the virtual character in all full-investment sub-segments, and record the average of the maximum number and the minimum number as the full-investment frequency; when there is no interaction between the user and the virtual character within the full-investment time in the interaction record, record the full-investment frequency as 0.
[0020] Furthermore, the record analysis method includes:
[0021] The time when the user launches a device in the environment device that is only half-engaged in the software or shallowly engaged in the software is recorded as non-full time, and the non-full time is divided into short time intervals. The number of non-full time that can be divided by short usage intervals is recorded as the total number of interaction intervals; the number of times the user responds to the active interaction of the virtual character in each short usage interval in the interaction record during the non-full time is obtained, and recorded as the response frequency; half of the real-time frequency is recorded as the judgment frequency; the short usage interval with a response frequency greater than or equal to the judgment frequency is recorded as a valid interaction interval; the short usage interval with a response frequency less than the judgment frequency is recorded as an invalid interaction interval; when the number of valid interaction intervals is greater than or equal to the number of invalid interaction intervals, the frequency ratio is updated to Where g1 is the number of valid interaction intervals, g2 is the number of invalid interaction intervals, and g is the total number of interaction intervals. When the number of valid interaction intervals is less than the number of invalid interaction intervals, the frequency ratio is updated to
[0022]
[0023] Furthermore, the optimization strategy based on the analysis results includes: obtaining the latest full-engagement frequency in real time, and when the user uses the environmental equipment in full-engagement time, setting the maximum number of active interactions of the virtual character in a short usage interval to the latest full-engagement frequency; obtaining the latest frequency ratio in real time, multiplying the latest frequency ratio by the limit frequency and rounding down the value as the update frequency; when the user uses the environmental equipment part-time, setting the maximum number of active interactions of the virtual character in a short time interval to the update frequency.
[0024] In a second aspect, the present invention further provides an interactive strategy setting system for a virtual character, comprising a first strategy acquisition module, a strategy optimization module, and a personalized strategy establishment module;
[0025] The first strategy acquisition module is used to acquire the environment equipment where the virtual character is located, analyze the user's software usage time, and set the first interaction strategy of the virtual character based on the analysis result;
[0026] The strategy optimization module is used to obtain the user's interaction records; analyze the user's interaction records using the record analysis method, and obtain the optimization strategy based on the analysis results;
[0027] The personalized strategy establishment module is used to optimize the first interaction strategy based on the optimization strategy, record the optimized first interaction strategy as the personalized interaction strategy, and optimize the interaction of the virtual character based on the personalized interaction strategy.
[0028] In a third aspect, the present application provides an electronic device, comprising a processor and a memory, wherein the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the steps in the above method are performed.
[0029] In a fourth aspect, the present application provides a storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps in the above method are performed.
[0030] Beneficial effects of the present invention: The present invention first analyzes the usage time of the software of the user, and sets the first interaction strategy of the virtual character based on the analysis result. The advantage of this is that by obtaining the first interaction strategy of the virtual character based on the software usage time, the virtual character can interact with the user in combination with the user's usage habits of other software in the device when the first interaction strategy is used, thereby preventing the problem that the virtual character affects the user's device usage when the user is using other software in the device;
[0031] The present invention also uses a record analysis method to analyze the user's interaction records, and obtains an optimization strategy based on the analysis results; based on the optimization strategy, the first interaction strategy is optimized to obtain a personalized interaction strategy. The advantage of this is that by establishing an optimization strategy and optimizing the first interaction strategy, the obtained personalized interaction strategy can be made more in line with the user's habit of using the device, thereby establishing different personalized interaction strategies for each user, so that the virtual character can allow each user to have a better device experience when interacting with different users and the user uses other software in the device. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] Figure 1 is a functional block diagram of the system of the present invention;
[0033] Figure 2 is a flow chart of the steps of the method of the present invention;
[0034] Figure 3 It is a schematic diagram of the software usage curve KQ of the present invention;
[0035] Figure 4 It is a schematic structural diagram of the electronic device of the present invention. DETAILED DESCRIPTION
[0036] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0037] Example 1, first aspect, please refer to Figure 1 As shown, the present application provides an interactive strategy setting system for a virtual character, including a first strategy acquisition module, a strategy optimization module, and a personalized strategy establishment module;
[0038] The first strategy acquisition module is used to acquire the environment device where the virtual character is located, analyze the usage time of the user's software, and set the first interaction strategy of the virtual character based on the analysis result; the first strategy acquisition module includes a first strategy setting unit, and the first strategy setting unit is configured with a software time analysis strategy and a first strategy setting strategy; the software time analysis strategy includes: recording the device where the virtual character is located as the environment device; acquiring the usage time of multiple software used in the environment device within a standard usage cycle, and marking all software with a usage time not being 0 as available software KR1 to available software KR2 in descending order based on the usage time of each software. n; In the specific implementation process, the standard usage cycle can be set according to the update cycle of the device or the user's device usage habits. For example, if the device used by the user is a computer and the computer is updated once a week, the standard usage cycle can be set to one week, and the environment device is a computer;
[0039] The standard use cycle is evenly divided into n parts, and the time corresponding to one part is recorded as a single use interval; the single use intervals in the standard use cycle are recorded in order from the beginning to the end as single use intervals DJ1 to single use intervals DJ n ; Establish a plane rectangular coordinate system, recorded as the application analysis coordinate system, where the coordinate points to the right of the origin in the X-axis of the application analysis coordinate system are single-use interval DJ1 to single-use interval DJ n , the unit of the Y axis is percentage; for example, the environment equipment is a computer, the standard use period is 3 days, and the available software KR1 to available software KR n They are WPS, browser and WeChat respectively, then the value of n is 3, 3 days are divided into 3 parts evenly, and the single use interval DJ is 1 day; for WPS in the available software KR, the time WPS is used in each single use interval DJ is 3h, 2h and 3h respectively, and the time WPS interface is in the main interface of the computer in each word use interval DJ is 2.5h, 2h and 2h respectively, then the single main percentage corresponding to WPS is 83.3%, 100% and 66.7% respectively; therefore, there should be a point with a ordinate of 100% in the software use curve KQ corresponding to WPS, and the software use curve KQ corresponding to WPS is not a straight line with Y=100%. At this time, WPS is recorded as semi-invested software, and the software use curve KQ corresponding to WPS can be found in Figure 3 As shown, DJ1 to DJ3 are single-use intervals DJ1 to DJ3, DD1 to DD3 are points corresponding to ordinates of 83.3%, 100% and 66.7%, respectively, and KQ1 is a software usage curve KQ corresponding to WPS;
[0040] For any available software KR n1 , get the available software KR n1 The time used in each single use interval DJ is recorded as single use time DY1 to single use time DY n ; Get the software KR available in each single use interval DJ n1 The time when the interface is in the main interface of the environmental device is recorded as the main use time ZY1 to the main use time ZY n ; For any single use interval DJ n1 , set the main usage time ZY n1 Divide by the single use time DJ n1The value multiplied by 100% is recorded as the single main percentage; obtain the single main percentage corresponding to each single use interval DJ, and mark all single use intervals DJ and their corresponding single main percentages in the application analysis coordinate system, and record the curve formed by the marked points as the software use curve KQ n1 , where n1 is a positive integer less than or equal to n and greater than or equal to 1;
[0041] Obtain all software usage curves KQ corresponding to the available software KR; when the software usage curve KQ of the available software KR is a straight line with Y=100%, the available software KR is recorded as fully invested software; when there is a point with a ordinate of 100% in the software usage curve KQ of the available software KR and the software usage curve KQ is not a straight line with Y=100%, the available software KR is recorded as semi-invested software; when there is no point with a ordinate equal to 100% in the software usage curve KQ of the available software KR, the available software KR is recorded as shallowly invested software.
[0042] In the specific implementation process, when the software usage curve KQ of the available software KR is a straight line with Y=100%, it means that the user will use the software throughout the whole process and will not put the software into the background every time the software is used, which means that the software is relatively important and needs to be placed on the main interface all the time, such as office software or game software, so the software can be recorded as full-investment software; and if there is a point with a vertical coordinate of 100% in the software usage curve KQ of the available software KR and the software usage curve KQ is not a straight line with Y=100%, it means that the software is occasionally in the whole process and needs to be placed on the main interface all the time when being used, that is, the software is relatively important but has a lower priority than the full-investment software, so the software can be recorded as semi-investment software; and if there is no point with a vertical coordinate equal to 100% in the software usage curve KQ of the available software KR, it means that the software will not be displayed on the main interface all the time when being used, and is usually placed in the background, such as music software, so the priority on the main interface is lower than that of the full-investment software and the semi-investment software, and it can be recorded as shallow-investment software.
[0043] The first strategy setting strategy includes: when the user uses the environment device and calls out the virtual character, the interface where the virtual character is located is recorded as the real-time interactive interface; the first interactive strategy includes: recording the available software KR started in the real-time interactive interface of the environment device at this time as the environment software HR; when there is any fully invested software in the environment software HR, the size data of the software window of the fully invested software and the size data of the main interface window of the environment device are obtained, and when the size data of the software window of the fully invested software is equal to the data of the main interface window of the environment device, the virtual character is hidden in the main interface of the environment device; when the size data of the software window of the fully invested software is smaller than the size data of the main interface window of the environment device, the position of the virtual character is adjusted to the area outside the software window of the fully invested software in the main interface of the environment device, wherein the size data includes length data and width data;
[0044] For example, in a specific implementation, the size data of the software window of the fully-engaged software is 53.13 cm long and 29.89 cm wide, and the size data of the main interface window of the environmental device is 53.13 cm long and 29.89 cm wide. This means that when the user uses the fully-engaged software, the main interface window of the entire environmental device needs to be used and only the fully-engaged software needs to be used during the entire use process. If the virtual character still stays on the desktop or makes interactive behaviors at this time, it will affect the user's use of the device. Therefore, the virtual character should be hidden in the main interface of the environmental device to allow the user to have a better device experience. If the size data of the software window of the fully-engaged software is smaller than the size data of the main interface window of the environmental device, the position of the virtual character can be adjusted to an area outside the software window of the fully-engaged software in the main interface of the environmental device to prevent the virtual character from interfering with the user when the user is using the fully-engaged software.
[0045] When the devices started in the real-time interactive interface of the environment device at this time are only semi-engagement software and shallow-engagement software, the maximum number of times the virtual character can actively interact within a short usage interval is recorded as the limit frequency; based on the number of semi-engagement software and shallow-engagement software started in the device environment, the moderate frequency algorithm is used to obtain the frequency ratio, and the moderate frequency algorithm includes: Wherein, F is the frequency ratio, α1 is the semi-investment coefficient, α2 is the shallow investment coefficient, f1 is the number of semi-investment software started in the environment device, f2 is the number of shallow investment software started in the environment device, and f is the sum of f1 and f2; the value obtained by multiplying the frequency ratio by the limit frequency and rounding down is recorded as the real-time frequency; the maximum number of active interactions of the virtual character in each short usage interval in the environment device at this time is set as the real-time frequency; in specific implementation, when the devices started in the real-time interaction interface of the environment device are only semi-investment software and shallow investment software, it means that when the user uses the environment device, there is time to put the software in the environment device in the background and interact with the virtual character. Therefore, the number of semi-investment software and shallow investment software started in the device environment is combined without affecting the user's use of semi-investment software and shallow investment software. The frequency ratio can be obtained according to the moderate frequency algorithm to obtain the real-time frequency at which the virtual character should actively interact with the user, so that the interaction of the virtual character does not disturb the user and increases the user's interest in the virtual character; the values of α1 and α2 in the moderate frequency algorithm of this embodiment are both 0.5. In the subsequent optimization strategy, the numerical values of the coefficients represented by α1 and α2 can be adjusted according to the interaction records between the user and the virtual character. Therefore, the values of α1 and α2 can be changed according to the actual situation to ensure that the user's personalized interaction strategy is obtained when using an optimization strategy with fewer times, thereby improving the interaction experience between the user and the virtual character; for example, in one analysis, the number of semi-investment software started in the environmental device is 3, and the number of shallow-investment software started in the environmental device is 2. Then, by calculation, it can be obtained that the frequency ratio is 0.5.
[0046] The strategy optimization module is used to obtain the user's interaction records; the user's interaction records are analyzed using a record analysis method, and an optimization strategy is obtained based on the analysis results; the strategy optimization module includes a record analysis unit and an optimization strategy acquisition unit; the record analysis unit is configured with a record analysis strategy; the record analysis strategy includes: obtaining the user's interaction record with the virtual character after the virtual character uses the first interaction strategy for a standard use period, analyzing the interaction record using a record analysis method, and obtaining an optimization strategy based on the analysis results; the record analysis method includes: recording the time when the user uses the full-input software in the environmental equipment as the full-input time, dividing the full-input time into short use intervals, and recording the divided time periods as the full-input sub-times When there is interaction between the user and the virtual character within the full-investment time in the interaction record, the maximum and minimum times of interaction between the user and the virtual character in all full-investment sub-segments are obtained, and the average of the maximum and minimum times is recorded as the full-investment frequency; when there is no interaction between the user and the virtual character within the full-investment time in the interaction record, the full-investment frequency is recorded as 0; in the specific implementation process, by obtaining the full-investment frequency, the reference number of times that the user can actively interact with the virtual character when using the full-investment software can be obtained, so that when the user subsequently uses the full-investment software, the virtual character can be controlled to actively interact with the user based on the reference number, thereby optimizing the user's interaction experience with the virtual character when using the full-investment software.
[0047] The time when the user launches a device in the environment device that is only half-engaged in the software or shallowly engaged in the software is recorded as non-full time, and the non-full time is divided into short time intervals. The number of non-full time that can be divided by short usage intervals is recorded as the total number of interaction intervals; the number of times the user responds to the active interaction of the virtual character in each short usage interval in the interaction record during the non-full time is obtained, and recorded as the response frequency; half of the real-time frequency is recorded as the judgment frequency; the short usage interval with a response frequency greater than or equal to the judgment frequency is recorded as a valid interaction interval; the short usage interval with a response frequency less than the judgment frequency is recorded as an invalid interaction interval; when the number of valid interaction intervals is greater than or equal to the number of invalid interaction intervals, the frequency ratio is updated to Where g1 is the number of valid interaction intervals, g2 is the number of invalid interaction intervals, and g is the total number of interaction intervals. When the number of valid interaction intervals is less than the number of invalid interaction intervals, the frequency ratio is updated to In the specific implementation process, by obtaining the number of valid interaction intervals and the number of invalid interaction intervals, it can be obtained whether the user feels comfortable with the interaction with the virtual character and the frequency of interaction when using the semi-immersion software and the shallow-immersion software. For example, when the number of valid interaction intervals in one analysis is 9, the number of invalid interaction intervals is 1, the number of semi-immersion software started in the environment device is 3, and the number of shallow-immersion software started in the environment device is 2, it means that the user will respond to the active interaction of the virtual character in most cases, that is, the user feels comfortable with the interaction with the virtual character and the frequency of interaction at this time, then the frequency ratio can be appropriately increased to increase the interaction frequency between the user and the virtual character, and the frequency ratio can be calculated to be updated to -0.08; in this embodiment, when the calculated frequency ratio is less than 0, the frequency ratio is set to 1; when the calculated frequency ratio is greater than or equal to 1, the frequency ratio is set to 0.1; therefore, the frequency ratio calculated above should be updated to 1;
[0048] The optimization strategy acquisition unit is configured with an optimization strategy acquisition strategy; the optimization strategy acquisition strategy includes: obtaining the latest full-investment frequency in real time, and when the user uses the environment equipment in full-investment time, setting the maximum number of active interactions of the virtual character in a short usage interval to the latest full-investment frequency; obtaining the latest frequency ratio in real time, multiplying the latest frequency ratio by the limit frequency and rounding down the value as the update frequency; when the user uses the environment equipment part-time, setting the maximum number of active interactions of the virtual character in a short time interval to the update frequency.
[0049] The personalized strategy establishment module is used to optimize the first interaction strategy based on the optimization strategy, record the optimized first interaction strategy as the personalized interaction strategy, and optimize the interaction of the virtual character based on the personalized interaction strategy.
[0050] Example 2, second aspect, please refer to Figure 2 As shown, the present application also provides a method for setting an interaction strategy of a virtual character, comprising the following steps:
[0051] Step S1, obtaining the environment equipment where the virtual character is located, analyzing the usage time of the user's software, and setting the first interaction strategy of the virtual character based on the analysis result;
[0052] Step S1 includes the following sub-steps: Step S101, record the device where the virtual character is located as the environment device; obtain the usage time of multiple software used in the environment device within the standard usage cycle, and mark all software with usage time not equal to 0 as available software KR1 to available software KR2 in descending order based on the usage time of each software. n ;
[0053] Step S102, divide the standard use cycle into n parts evenly, and record the time corresponding to one part as a single use interval; record the single use intervals in the standard use cycle from the beginning to the end in time as single use intervals DJ1 to single use intervals DJ n ; Establish a plane rectangular coordinate system, recorded as the application analysis coordinate system, where the coordinate points to the right of the origin in the X-axis of the application analysis coordinate system are single-use interval DJ1 to single-use interval DJ n , the unit of Y axis is percentage;
[0054] Step S103, for any available software KR n1 , get the available software KR n1 The time used in each single use interval DJ is recorded as single use time DY1 to single use time DY n ; Get the software KR available in each single use interval DJ n1 The time when the interface is in the main interface of the environmental device is recorded as the main use time ZY1 to the main use time ZY n ; For any single use interval DJ n1 , set the main usage time ZY n1 Divide by the single use time DJ n1 The value multiplied by 100% is recorded as the single main percentage; obtain the single main percentage corresponding to each single use interval DJ, and mark all single use intervals DJ and their corresponding single main percentages in the application analysis coordinate system, and record the curve formed by the marked points as the software use curve KQ n1 , where n1 is a positive integer less than or equal to n and greater than or equal to 1;
[0055] Step S104, obtaining all software usage curves KQ corresponding to the available software KR; when the software usage curve KQ of the available software KR is a straight line with Y=100%, the available software KR is recorded as fully invested software; when there is a point with a ordinate of 100% in the software usage curve KQ of the available software KR and the software usage curve KQ is not a straight line with Y=100%, the available software KR is recorded as semi-invested software; when there is no point with a ordinate equal to 100% in the software usage curve KQ of the available software KR, the available software KR is recorded as shallowly invested software;
[0056] Step S105, when the user uses the environment device and calls out the virtual character, the interface where the virtual character is located is recorded as the real-time interactive interface; the first interactive strategy includes: step S1051, recording the available software KR started in the real-time interactive interface of the environment device at this time as the environment software HR; when there is any fully invested software in the environment software HR, obtaining the size data of the software window of the fully invested software and the size data of the main interface window of the environment device, when the size data of the software window of the fully invested software is equal to the data of the main interface window of the environment device, hiding the virtual character in the main interface of the environment device; when the size data of the software window of the fully invested software is smaller than the size data of the main interface window of the environment device, adjusting the position of the virtual character to the area outside the software window of the fully invested software in the main interface of the environment device, wherein the size data includes length data and width data;
[0057] Step S1052: when only semi-immersion software and shallow-immersion software are started in the real-time interactive interface of the environment device at this time, the maximum number of times the virtual character can actively interact within a short usage interval is recorded as the limit frequency; based on the number of semi-immersion software and shallow-immersion software started in the device environment, a moderate frequency algorithm is used to obtain a frequency ratio, and the moderate frequency algorithm includes: Wherein, F is the frequency ratio, α1 is the semi-investment coefficient, α2 is the shallow investment coefficient, f1 is the number of semi-investment software launched in the environmental equipment, f2 is the number of shallow investment software launched in the environmental equipment, and f is the sum of f1 and f2; the value obtained by multiplying the frequency ratio by the limit frequency and rounding down is recorded as the real-time frequency; the maximum number of active interactions of the virtual character in each short usage interval in the environmental equipment at this time is set as the real-time frequency.
[0058] Step S2, obtaining the user's interaction records; analyzing the user's interaction records using a record analysis method, and obtaining an optimization strategy based on the analysis results;
[0059] Step S2 includes: step S201, obtaining the interaction record between the user and the virtual character after the virtual character uses the first interaction strategy for a standard use period, using the record analysis method to analyze the interaction record, and obtaining the optimization strategy based on the analysis result; the record analysis method includes: step S2011, recording the time when the user uses the full-involvement software in the environmental equipment as the full-involvement time, dividing the full-involvement time into short use intervals, and recording the divided time periods as the full-involvement sub-segments, when there is interaction between the user and the virtual character within the full-involvement time in the interaction record, obtaining the maximum number and minimum number of interactions between the user and the virtual character in all the full-involvement sub-segments, and recording the average of the maximum number and the minimum number as the full-involvement frequency; when there is no interaction between the user and the virtual character within the full-involvement time in the interaction record, recording the full-involvement frequency as 0;
[0060] Step S2012, record the time when the device started by the user in the environment device is only half-engaged in the software or shallowly engaged in the software as non-full time, use short time intervals to divide the non-full time, and record the number of short use intervals that can divide the non-full time as the total number of interaction intervals; obtain the number of times the user responds to the active interaction of the virtual character in each short use interval in the interaction record during the non-full time, and record it as the response frequency; record half of the real-time frequency as the judgment frequency; record the short use interval with a response frequency greater than or equal to the judgment frequency as a valid interaction interval; record the short use interval with a response frequency less than the judgment frequency as an invalid interaction interval; when the number of valid interaction intervals is greater than or equal to the number of invalid interaction intervals, update the frequency ratio to Where g1 is the number of valid interaction intervals, g2 is the number of invalid interaction intervals, and g is the total number of interaction intervals. When the number of valid interaction intervals is less than the number of invalid interaction intervals, the frequency ratio is updated to
[0061]
[0062] Step S202, the optimization strategy is: obtain the latest full-engagement frequency in real time, and when the user uses the environment equipment in full-engagement time, set the maximum number of active interactions of the virtual character in a short usage interval to the latest full-engagement frequency; obtain the latest frequency ratio in real time, multiply the latest frequency ratio by the limit frequency and round down the value as the update frequency; when the user uses the environment equipment part-time, set the maximum number of active interactions of the virtual character in a short time interval to the update frequency.
[0063] Step S3, optimizing the first interaction strategy based on the optimization strategy, recording the optimized first interaction strategy as the personalized interaction strategy, and optimizing the interaction of the virtual character based on the personalized interaction strategy.
[0064] Example 3, please refer to Figure 4 As shown, Figure 4 The structural diagram of an electronic device is illustrated, and the electronic device may include: a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus. The memory stores computer-readable instructions, and the processor can call the instructions in the memory. When the computer-readable instructions are executed by the processor, the steps in a method for setting an interaction strategy for a virtual character are executed to achieve the following functions: analyzing the length of time the user's software is used, and setting a first interaction strategy for the virtual character based on the analysis result; analyzing the user's interaction record using a record analysis method, and obtaining an optimization strategy based on the analysis result; optimizing the first interaction strategy based on the optimization strategy to obtain a personalized interaction strategy.
[0065] In addition, the logic instructions in the above-mentioned memory can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art, and the computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk.
[0066] Embodiment 4, the present application also provides a computer-readable storage medium, the present application provides a storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps in the above method for setting an interaction strategy for a virtual character are executed to achieve the following functions: analyzing the user's software usage time, and setting a first interaction strategy for the virtual character based on the analysis results; using a record analysis method to analyze the user's interaction records, and obtaining an optimization strategy based on the analysis results; optimizing the first interaction strategy based on the optimization strategy to obtain a personalized interaction strategy.
[0067] Through the description of the above implementation methods, the embodiments of the present invention can be provided as methods, systems or computer program products. Based on such an understanding, the above technical solutions can be essentially or partly contributed to the prior art in the form of software products, which can be stored in a computer-readable storage medium, such as ROM / RAM, a magnetic disk, an optical disk, etc., and include several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0068] In the embodiments provided in the present application, it should be understood that the disclosed system or method can be implemented in other ways. The embodiments described above are merely schematic. For example, the division of modules or units is only a logical function division. There may be other division methods in actual implementation. For example, multiple modules or units can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, and the indirect coupling or communication connection of systems, modules and units can be electrical, mechanical or other forms.
[0069] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A method for setting an interaction strategy for a virtual character, characterized in that: The steps include: Acquire the environment device where the virtual character is located, analyze the user's software usage time, and set the first interaction strategy of the virtual character based on the analysis result; Obtain user interaction records; use record analysis methods to analyze user interaction records, and obtain optimization strategies based on the analysis results; The first interaction strategy is optimized based on the optimization strategy, the optimized first interaction strategy is recorded as the personalized interaction strategy, and the interaction of the virtual character is optimized based on the personalized interaction strategy.
2. The method for setting a virtual character interaction strategy according to claim 1, characterized in that: Obtaining the environment and equipment of the virtual character and analyzing the user's software usage time includes: The device where the avatar is located is recorded as the environment device; the usage time of multiple software used in the environment device within the standard usage cycle is obtained, and all software with usage time not being 0 is marked in descending order as available software KR1 to available software KR n ; The standard use cycle is evenly divided into n parts, and the time corresponding to one part is recorded as a single use interval; the single use intervals in the standard use cycle are recorded in order from the beginning to the end as single use intervals DJ1 to single use intervals DJ n ; Establish a plane rectangular coordinate system, recorded as the application analysis coordinate system, where the coordinate points to the right of the origin in the X-axis of the application analysis coordinate system are single-use interval DJ1 to single-use interval DJ n , the unit of the Y-axis is percentage.
3. The method for setting a virtual character interaction strategy according to claim 2, characterized in that: Obtaining the environment and equipment of the virtual character and analyzing the user's software usage time also includes: For any available software KR n1 , get the available software KR n1 The time used in each single use interval DJ is recorded as single use time DY1 to single use time DY n ; Get the software KR available in each single use interval DJ n1 The time when the interface is in the main interface of the environmental device is recorded as the main use time ZY1 to the main use time ZY n ; For any single use interval DJ n1 , set the main usage time ZY n1 Divide by the single use time DJ n1 The value multiplied by 100% is recorded as the single main percentage; obtain the single main percentage corresponding to each single use interval DJ, and mark all single use intervals DJ and their corresponding single main percentages in the application analysis coordinate system, and record the curve formed by the marked points as the software use curve KQ n1 , where n1 is a positive integer less than or equal to n and greater than or equal to 1; Obtain all software usage curves KQ corresponding to the available software KR; when the software usage curve KQ of the available software KR is a straight line with Y=100%, the available software KR is recorded as fully invested software; when there is a point with a ordinate of 100% in the software usage curve KQ of the available software KR and the software usage curve KQ is not a straight line with Y=100%, the available software KR is recorded as semi-invested software; when there is no point with a ordinate equal to 100% in the software usage curve KQ of the available software KR, the available software KR is recorded as shallowly invested software.
4. The method for setting a virtual character interaction strategy according to claim 3, characterized in that: The first interaction strategy of setting the virtual character based on the analysis result includes: When the user uses the environment device and calls out the virtual character, the interface where the virtual character is located is recorded as the real-time interactive interface; the first interactive strategy includes: recording the available software KR started in the real-time interactive interface of the environment device at this time as the environment software HR; when there is any fully invested software in the environment software HR, obtaining the size data of the software window of the fully invested software and the size data of the main interface window of the environment device, when the size data of the software window of the fully invested software is equal to the data of the main interface window of the environment device, hiding the virtual character in the main interface of the environment device; when the size data of the software window of the fully invested software is smaller than the size data of the main interface window of the environment device, adjusting the position of the virtual character to the area outside the software window of the fully invested software in the main interface of the environment device, wherein the size data includes length data and width data; When the devices started in the real-time interactive interface of the environment device at this time are only semi-engagement software and shallow-engagement software, the maximum number of times the virtual character can actively interact within a short usage interval is recorded as the limit frequency; based on the number of semi-engagement software and shallow-engagement software started in the device environment, the moderate frequency algorithm is used to obtain the frequency ratio, and the moderate frequency algorithm includes: Wherein, F is the frequency ratio, α1 is the semi-investment coefficient, α2 is the shallow investment coefficient, f1 is the number of semi-investment software launched in the environmental equipment, f2 is the number of shallow investment software launched in the environmental equipment, and f is the sum of f1 and f2; the value obtained by multiplying the frequency ratio by the limit frequency and rounding down is recorded as the real-time frequency; the maximum number of active interactions of the virtual character in each short usage interval in the environmental equipment at this time is set as the real-time frequency.
5. The method for setting a virtual character interaction strategy according to claim 4, characterized in that: Obtain the user's interaction records; use the record analysis method to analyze the user's interaction records, including: Obtain the interaction record between the user and the virtual character after the virtual character uses the first interaction strategy for a standard use cycle, use the record analysis method to analyze the interaction record, and obtain the optimization strategy based on the analysis result; the record analysis method includes: recording the time when the user uses the full-investment software in the environmental equipment as the full-investment time, dividing the full-investment time into short usage intervals, and recording the divided time periods as the full-investment sub-segments; when there is interaction between the user and the virtual character within the full-investment time in the interaction record, obtain the maximum number and minimum number of interactions between the user and the virtual character in all full-investment sub-segments, and record the average of the maximum number and the minimum number as the full-investment frequency; when there is no interaction between the user and the virtual character within the full-investment time in the interaction record, record the full-investment frequency as 0.
6. The method for setting a virtual character interaction strategy according to claim 5, characterized in that: Record analysis methods also include: The time when the user launches a device in the environment device that is only half-engaged in the software or shallowly engaged in the software is recorded as non-full time, and the non-full time is divided into short time intervals. The number of non-full time that can be divided by short usage intervals is recorded as the total number of interaction intervals; the number of times the user responds to the active interaction of the virtual character in each short usage interval in the interaction record during the non-full time is obtained, and recorded as the response frequency; half of the real-time frequency is recorded as the judgment frequency; the short usage interval with a response frequency greater than or equal to the judgment frequency is recorded as a valid interaction interval; the short usage interval with a response frequency less than the judgment frequency is recorded as an invalid interaction interval; when the number of valid interaction intervals is greater than or equal to the number of invalid interaction intervals, the frequency ratio is updated to Where g1 is the number of valid interaction intervals, g2 is the number of invalid interaction intervals, and g is the total number of interaction intervals. When the number of valid interaction intervals is less than the number of invalid interaction intervals, the frequency ratio is updated to 7. The method for setting a virtual character interaction strategy according to claim 6, characterized in that: The optimization strategies based on the analysis results include: obtaining the latest full-engagement frequency in real time, and when the user is using the environmental equipment in full-engagement time, setting the maximum number of active interactions of the virtual character in a short usage interval to the latest full-engagement frequency; obtaining the latest frequency ratio in real time, multiplying the latest frequency ratio by the limit frequency and rounding down the value as the update frequency; when the user is not using the environmental equipment full-time, setting the maximum number of active interactions of the virtual character in a short time interval to the update frequency.
8. A virtual character interaction strategy setting system, used to implement a virtual character interaction strategy setting method according to any one of claims 1 to 7, characterized in that: It includes a first strategy acquisition module, a strategy optimization module and a personalized strategy establishment module; The first strategy acquisition module is used to acquire the environment equipment where the virtual character is located, analyze the user's software usage time, and set the first interaction strategy of the virtual character based on the analysis result; The strategy optimization module is used to obtain the user's interaction records; analyze the user's interaction records using the record analysis method, and obtain the optimization strategy based on the analysis results; The personalized strategy establishment module is used to optimize the first interaction strategy based on the optimization strategy, record the optimized first interaction strategy as the personalized interaction strategy, and optimize the interaction of the virtual character based on the personalized interaction strategy.
9. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory stores computer-readable instructions. When the computer-readable instructions are executed by the processor, the steps in the method according to any one of claims 1 to 7 are executed.
10. A storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps in the method according to any one of claims 1 to 7 are executed.
Citation Information
Cited By
Water purifier control method and system based on AI model, terminal and storage medium
CN119940575A
