Page color system adjustment method and device, electronic equipment and storage medium

By collecting user behavior data and calculating similarity and preferences, the page color scheme is automatically adjusted, solving the problems of poor visual effects and inconvenience caused by manual adjustment in existing technologies. This achieves personalized page color scheme adjustment, improving user experience and competitiveness.

CN121958675APending Publication Date: 2026-05-01BEIJING WODONG TIANJUN INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
BEIJING WODONG TIANJUN INFORMATION TECH CO LTD
Filing Date
2024-10-30
Publication Date
2026-05-01

AI Technical Summary

Technical Problem

In existing technologies, page color schemes and layouts rely on manual adjustments, resulting in poor visual effects and inconvenience in use.

Method used

By collecting user behavior data, the similarity and preference between the user's behavior and that of a preset user group are calculated, and the page color scheme is automatically adjusted to match the target color scheme.

Benefits of technology

It enables personalized page color scheme adjustments, improving the user's visual and usability experience, and enhancing the competitiveness and user satisfaction of the website or application.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121958675A_ABST
    Figure CN121958675A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a page color system adjusting method and device, electronic equipment and a storage medium. The page color system adjusting method comprises the steps that page behavior data of a current user is collected; calculating the behavior similarity between the current user and each preset user group based on the page behavior data of the current user and the page behavior data of each preset user group; based on the behavior similarity between the current user and each preset user group and the preference degree of each preset user group for each preset page color system, determining a target page color system from each preset page color system; and adjusting the current page color system used by the current user to the target page color system. According to the page color system adjusting method, the problems of poor visual effect, inconvenience in use and the like caused by the fact that a user needs to manually select a page color system of an existing webpage are solved.
Need to check novelty before this filing date? Find Prior Art

Description

Page color scheme adjustment methods, devices, electronic equipment and storage media Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a method, apparatus, electronic device and storage medium for adjusting page color scheme. Background Technology

[0002] With the development of internet technology, users have increasingly higher demands for the interactive experience of web pages. The webpage, as the face of the website, should provide users with a more intuitive experience. In page layout design, webpages typically use static color schemes, utilizing common and widely used colors directly as the page's color palette. Alternatively, a fixed color scheme can be provided to users, who can manually select colors from that scheme to achieve the desired page layout.

[0003] In the process of realizing this invention, the inventors discovered that the current design of page color scheme layout mainly relies on manual adjustment, which has problems such as poor visual effect and inconvenience of use. Summary of the Invention

[0004] This invention provides a method, apparatus, electronic device, and storage medium for adjusting page colors, which can automatically adjust page colors and improve the visual effect of the page.

[0005] In a first aspect, the page color scheme adjustment method provided in the embodiments of the present invention includes:

[0006] Collect current user's page behavior data;

[0007] The similarity between the current user's behavior and that of each preset user group is calculated based on the current user's page behavior data and the page behavior data of each preset user group.

[0008] Based on the similarity of the current user's behavior with each preset user group and the degree of preference of each preset user group for each preset page color scheme, the target page color scheme is determined from each preset page color scheme;

[0009] Adjust the color scheme of the current page used by the current user to the color scheme of the target page.

[0010] The aforementioned page color scheme adjustment method collects real-time page behavior data of the current user, providing support for determining the page color scheme that the current user may prefer based on this data. It calculates the behavioral similarity between the current user and each preset user group based on the current user's page behavior data and the page behavior data of each preset user group. By combining historical page behavior data from a large number of preset users, it identifies preset user groups, providing a more accurate reference for analyzing and judging the current user's page behavior data. Furthermore, by calculating the behavioral similarity between the current user and each preset user group based on the page behavior data, it achieves the goal of determining the degree of behavioral similarity between the current user and preset users within each preset user group through page behavior data, thus providing a basis for subsequent determinations. The system provides support for the current user's preferred page color scheme. Based on the behavioral similarity between the current user and various preset user groups, and the preference of each preset user group for each preset page color scheme, the target page color scheme is determined from the preset page color schemes. This achieves the selection of the most suitable target page color scheme for the current user based on the current user's behavioral data and the color scheme preferences of similar user groups. The system automatically adjusts the current page color scheme used by the current user to the target page color scheme, solving the problem in existing technologies where users can only manually adjust or select the page color scheme. This improves the user's visual and user experience, thereby enhancing the competitiveness of the website or application and attracting and retaining more users. Therefore, the method proposed in this embodiment, which determines the target page color scheme based on the behavioral similarity determined by the current user's page behavior data and the page behavior data of various preset user groups, and the preference of each preset user group for each preset page color scheme, is particularly suitable for automatically adjusting the page color scheme. It solves the problems of poor visual effects and inconvenience caused by the need for users to manually select the page color scheme in existing web page adjustments. Meanwhile, since this embodiment determines the target page color scheme based on user behavior data and the color preferences of similar user groups, it can automatically customize the most suitable page color scheme for each user without requiring manual adjustment by the user. This achieves personalized customization while also meeting the visual and emotional needs of different users, thereby improving user satisfaction.

[0011] Secondly, the page color adjustment device provided in the embodiments of the present invention includes:

[0012] The data collection module is used to collect the current user's page behavior data;

[0013] The calculation module is used to calculate the similarity between the current user's behavior and that of each preset user group based on the current user's page behavior data and the page behavior data of each preset user group.

[0014] The determination module is used to determine the target page color scheme from the preset page color schemes based on the similarity of the current user's behavior with each preset user group and the degree of preference of each preset user group for each preset page color scheme.

[0015] The adjustment module is used to change the color scheme of the current page used by the current user to the color scheme of the target page.

[0016] Thirdly, the electronic device provided in the embodiments of the present invention includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, it implements the page color scheme adjustment method as described in any embodiment of the present invention.

[0017] Fourthly, the computer-readable storage medium provided in the embodiments of the present invention stores a computer program thereon, which, when executed by a processor, implements the page color scheme adjustment method as described in any embodiment of the present invention.

[0018] The descriptions of the second, third, and fourth aspects of the embodiments of the present invention can be referred to the detailed description of the first aspect; and the beneficial effects described in the second, third, and fourth aspects can be referred to the analysis of the beneficial effects of the first aspect, which will not be repeated here. Attached Figure Description

[0019] To more clearly illustrate the technical solution of the present invention, the accompanying drawings used in the embodiments will be briefly introduced below. It should be understood that the following drawings only show some embodiments of the present invention and should not be regarded as a limitation on the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.

[0020] Figure 1 is a flowchart illustrating a page color scheme adjustment method provided in an embodiment of the present invention;

[0021] Figure 2 is another flowchart illustrating the page color scheme adjustment method provided in an embodiment of the present invention;

[0022] Figure 3 is an example diagram of a preset user group provided in an embodiment of the present invention;

[0023] Figure 4 is a flowchart illustrating the specific process of the page color scheme adjustment method provided in an embodiment of the present invention.

[0024] Figure 5 is a structural schematic diagram of a page color adjustment device provided in an embodiment of the present invention;

[0025] Figure 6 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention. Detailed Implementation

[0026] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.

[0027] It should be noted that the terms "current," "target," etc., used in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0028] Figure 1 is a flowchart illustrating a page color scheme adjustment method provided in an embodiment of the present invention. This method is applicable to scenarios where the page color scheme needs to be automatically adjusted. The method can be executed by a page color scheme adjustment device provided in this embodiment, which can be implemented using software and / or hardware. In one specific embodiment, the device can be integrated into an electronic device, such as a personal computer, computer, or server. The following embodiment uses the integration of the page color scheme adjustment device into an electronic device as an example. Referring to Figure 1, the page color scheme adjustment method of this embodiment may include the following steps:

[0029] Step 110: Collect the current user's page behavior data.

[0030] Here, "current user" refers to the user currently using the electronic device. "Page behavior data" refers to the user's actions on the current page based on that electronic device.

[0031] Specifically, when a user is using an electronic device, they interact with the device's display page through touch or mouse movements. The electronic device responds to these interactions using its processing unit. Therefore, the electronic device can collect and record the user's actions while responding to them, thus obtaining page behavior data.

[0032] For example, when a user opens an electronic device and clicks on a browser within the device, the device's monitoring script begins monitoring the user's actions, collecting and recording these actions to obtain page behavior data. This page behavior data may include the user's browser click, actions initiated after opening the browser, and the time spent on the current page.

[0033] Optionally, in e-commerce websites, page behavior data may include user browsing time, click events, and purchase behavior. In educational platforms, page behavior data may include user learning habits and browsing time. In social media platforms, page behavior data may include user interaction levels, user browsing time, browsing habits, and user engagement.

[0034] In this embodiment, real-time collection of the current user's page behavior data provides support for determining the page color scheme that the current user may prefer based on the current user's page behavior data.

[0035] Step 120: Calculate the behavioral similarity between the current user and each preset user group based on the current user's page behavior data and the page behavior data of each preset user group.

[0036] Each preset user group is a group of users whose behavior is similar to that of other users in the page behavior data. Preset users can include test users and / or historical users of the page. The behavior similarity between the current user and each preset user group is used to determine the degree of similarity between the current user and users in each preset user group in terms of page behavior data.

[0037] For example, the preset user group can be determined as follows:

[0038] In one implementation, page behavior data for each preset user can be collected, and the behavioral similarity of the page behavior data of all preset users can be compared. Preset users with behavioral similarity greater than or equal to a preset similarity can be grouped into a preset user group. For example, if the preset users are A, B, C, and D, based on the page behavior data of A, B, C, and D, it can be determined that: the behavioral similarity between A and B is 80%, between A and C is 30%, between A and D is 50%, between B and C is 20%, between B and D is 40%, and between C and D is 70%. If the preset similarity is 70%, then preset users A and B can be grouped into one preset user group, and preset users C and D can be grouped into another preset user group.

[0039] In another implementation, a preset page behavior can be defined, grouping users exhibiting the defined page behavior into a single category. For example, the browser a user clicks on can be specified, or the duration of browsing time within the browser can be defined. For instance, if the preset users are A, B, C, D, and E, where A, B, and D click on browser x, and C and E click on browser y, then A, B, and D can be grouped into one preset user group, and C and E into another. Alternatively, if A, B, and C browse the webpage for more than 4 minutes, while D and E browse for only 2 minutes, then A, B, and C can be grouped into one preset user group, and D and E into another. Optionally, users within a preset user group can be determined based on both the browser the user clicks on and the duration of browsing time within the browser.

[0040] Specifically, since users in the preset user groups have similar behavioral characteristics, it is possible to determine which preset user group's behavior is most similar to the current user's page behavior data based on the page behavior data of each preset user group.

[0041] For example, in one implementation, if each preset user group is determined based on a defined preset page behavior, such as based on the browser clicked by the user or the browsing time of the user in the browser, the behavioral similarity between the current user and each preset user group can be directly determined based on whether the current user has the corresponding preset page behavior. In another implementation, for each preset user group, the behavioral similarity between each preset user in that group and the current user can be calculated, all behavioral similarities can be summed, and the average of all behavioral similarities can be determined as the behavioral similarity between the preset user group and the current user. In yet another implementation, a central user or representative user can be determined for each preset user group, and the behavioral similarity between the current user and each preset user group can be calculated based on the current user's page behavior data and the page behavior data of the central user or representative user of each preset user group.

[0042] In this embodiment, a preset user group is determined by combining historical page behavior data of a large number of preset users, providing a more accurate reference for the analysis and judgment of the current user's page behavior data. Furthermore, the similarity between the current user's behavior and that of each preset user group is calculated based on the current user's page behavior data and the page behavior data of each preset user group. This enables the determination of the degree of behavioral similarity between the current user and preset users within each preset user group through page behavior data, providing support for subsequently determining the page color scheme that the current user may prefer.

[0043] Step 130: Based on the similarity of behavior between the current user and each preset user group and the degree of preference of each preset user group for each preset page color scheme, determine the target page color scheme from each preset page color scheme.

[0044] In this context, a color scheme refers to a set of colors composed of specific combinations. A preset page color scheme is the color scheme of a pre-set browser page. The degree of preference refers to the degree to which users within a preset user group like different preset page color schemes. In this embodiment, a page consists of various elements and components. The page color scheme refers to an aesthetically pleasing and harmonious color scheme composed of the foreground color, background color, border color of the current page, and the colors of different elements and components on the page. In this embodiment, there are multiple preset page color schemes, and each preset user group has one or more preferred preset page color schemes. The degree of preference for each preset page color scheme by each preset user group can be different. The degree of preference for each preset page color scheme by each preset user group can be determined by the preferred page color scheme of each preset user in that preset user group. The more preset users in a preset user group who prefer a certain preset page color scheme, the higher the degree of preference for that preset page color scheme in that preset user group. The degree of preference for a color scheme can be represented by the percentage of users in the group who prefer that color scheme.

[0045] In one implementation, after determining the behavioral similarity between the current user and each preset user group, the system can first determine which preset user group has the highest behavioral similarity to the current user. After identifying the preset user group with the highest behavioral similarity to the current user, the target page color scheme is determined based on the preference of this preset user group for each preset page color scheme. For example, the preset user group with the highest behavioral similarity to the current user can be taken as the target user group, and the preset page color scheme most preferred by the target user group can be directly determined as the target page color scheme. For instance, if the target user group's preference for color scheme 1 is 80% and its preference for color scheme 2 is 20%, then color scheme 1 can be determined as the target page color scheme.

[0046] In another implementation, after determining the behavioral similarity between the current user and each preset user group, the decision weight of each preset user group is determined based on this similarity. Preset user groups with higher behavioral similarity will have higher decision weights. Based on the decision weights of each preset user group and their preference for different preset page color schemes, the current user's preference for different preset page color schemes is determined. Then, the preset page color scheme with the highest preference is selected as the target page color scheme. For example, if the current user's preference for color scheme 1 is 85% and their preference for color scheme 2 is 15%, then color scheme 1 can be selected as the target page color scheme.

[0047] Optionally, in this embodiment, a page color scheme recommendation model can be pre-trained to determine the target page color scheme. Specifically, when using the page color scheme recommendation model, the input to the model can be the behavioral similarity between the current user and each preset user group, as well as the preference degree of each preset user group for each preset page color scheme, and the output is the target page color scheme.

[0048] In this embodiment, the target page color scheme is determined from the preset page color schemes based on the similarity of the current user's behavior with each preset user group and the preference of each preset user group for each preset page color scheme. This realizes the selection of the most suitable target page color scheme for the current user based on the current user's behavior data and the color scheme preferences of similar user groups.

[0049] Step 140: Adjust the color scheme of the current page used by the current user to the color scheme of the target page.

[0050] Here, the current page color scheme refers to the color scheme currently being used by the user on the current page. In this embodiment, the current page color scheme can be the browser's default page color scheme, or it can be a color scheme selected or set by the user.

[0051] Specifically, after determining the target page's color scheme, the color scheme currently used by the user on the current page is automatically adjusted to match the determined target page's color scheme. For example, if the current user is using color scheme 2 and the target page uses color scheme 1, then color scheme 1 will be automatically switched to. Of course, if the current page's color scheme matches the target page's color scheme, no adjustment is needed.

[0052] In this embodiment, the color scheme of the current page used by the current user is adjusted to the color scheme of the target page. This solves the problem in the prior art that the page color scheme can only be manually adjusted or manually selected by the user. It realizes the automatic adjustment of the color scheme of the current page used by the current user to the color scheme of the target page, which improves the user's visual experience and user experience, thereby enhancing the competitiveness of the website or application and enabling the website or application to attract and retain more users.

[0053] In this embodiment, real-time collection of the current user's page behavior data provides support for determining the current user's potential preferred page color scheme based on this data. The similarity between the current user's behavior and that of each preset user group is calculated based on the current user's page behavior data and the page behavior data of each preset user group. By combining historical page behavior data from a large number of preset users, preset user groups are identified, providing a more accurate reference for analyzing and judging the current user's page behavior data. Furthermore, the calculation of the similarity between the current user's behavior and that of each preset user group, based on page behavior data, enables the determination of the degree of behavioral similarity between the current user and preset users within each preset user group, thus providing a basis for subsequent determination of the current user's preferred page color scheme. This method provides support for page color schemes that users may prefer. Based on the behavioral similarity between the current user and various preset user groups, and the preference of each preset user group for each preset page color scheme, the target page color scheme is determined from the preset page color schemes. This achieves the selection of the most suitable target page color scheme for the current user based on the current user's behavioral data and the color scheme preferences of similar user groups. It automatically adjusts the current page color scheme used by the current user to the target page color scheme, solving the problem in existing technologies where users can only manually adjust or select page color schemes. This improves the user's visual and user experience, thereby enhancing the competitiveness of the website or application and attracting and retaining more users. Therefore, the method proposed in this embodiment, which determines the target page color scheme based on the behavioral similarity determined by the current user's page behavior data and the page behavior data of various preset user groups, and the preference of each preset user group for each preset page color scheme, is particularly suitable for automatically adjusting the page color scheme, solving the problems of poor visual effects and inconvenience caused by the need for users to manually select page color schemes in existing web page adjustments. Meanwhile, since this embodiment determines the target page color scheme based on user behavior data and the color preferences of similar user groups, it can automatically customize the most suitable page color scheme for each user without requiring manual adjustment by the user. This achieves personalized customization while also meeting the visual and emotional needs of different users, thereby improving user satisfaction.

[0054] The following further describes the page color scheme adjustment method provided in this embodiment of the invention. Figure 2 is another schematic flowchart of the page color scheme adjustment method provided in this embodiment of the invention. As shown in Figure 2, the method of this embodiment includes:

[0055] Step 201: Collect the current user's page behavior data.

[0056] Specifically, when a user is using an electronic device, they interact with the device's display page through touch or mouse movements. The electronic device responds to these interactions using its processing unit. Therefore, the electronic device can collect and record the user's actions while responding to them, thus obtaining page behavior data.

[0057] Step 202: Obtain page behavior data of the preset user.

[0058] The term "preset users" includes test users from the initial experiments and trials, and / or historical users from previous applications; it encompasses a large number of users. Preset user page behavior data refers to the page behavior data collected during the initial experiments and trials, or during historical applications. This data may include, but is not limited to, page dwell time, frequently accessed pages, and page jump frequency. When acquiring preset user page behavior data, preferred page color schemes can also be obtained to provide data support for subsequent analysis.

[0059] Step 203: Cluster the preset users based on their page behavior data to obtain various preset user groups.

[0060] Each preset user in each preset user group possesses page behavior data and preferred page color schemes. The page behavior data of each preset user in each preset user group is used to determine the page behavior data for that preset user group. For example, the page behavior data of all preset users in a preset user group can be used as the page behavior data for that preset user group; alternatively, the page behavior data of representative users or cluster centers in a preset user group can be used as the page behavior data for that preset user group. The preferred page color schemes of each preset user in each preset user group are used to determine the degree of preference of that preset user group for each preset page color scheme. The degree of preference of a preset user group for a particular preset page color scheme can be determined by the percentage of people in that preset user group who prefer that preset page color scheme. For example, in a preset user group, 80% of preset users prefer page color scheme 1, 10% prefer page color scheme 2, and 10% prefer page color scheme 3; then the degree of preference of that user group for these three page color schemes is 80%, 10%, and 10%, respectively.

[0061] Clustering refers to the process of dividing a collection of physical or abstract objects into multiple classes composed of similar objects. Multiple cluster centers can be randomly selected or set. Based on the page behavior data of each preset user and the page behavior data of each cluster center, the cluster center closest to each preset user is found, and each preset user is assigned to that nearest cluster center. The preset users are classified and the cluster centers are updated repeatedly until the results converge or a preset number of iterations is reached. Ultimately, each preset user will be assigned to a cluster, which is a preset user group. Preset users within a preset user group will have relatively similar page behavior habits.

[0062] For example, three cluster centers can be set, and each preset user can be assigned to a cluster center based on their page behavior data. After assignment, the three cluster centers are updated based on the page behavior data of the preset users under each cluster center. All preset users are then reassigned based on the updated cluster centers. This process is repeated multiple times, and the preset users under each of the three cluster centers after the last iteration are grouped into three preset user groups. For example, the three preset user groups obtained by clustering can be shown in Figure 3, including preset user group 1, preset user group 2, and preset user group 3.

[0063] In this embodiment, clustering operations are used to organize preset users according to behavioral similarity, providing support for determining the color scheme preferred by the current user based on the similarity between the current user and each preset user group.

[0064] Step 204: Calculate the behavioral similarity between the current user and each preset user group based on the current user's page behavior data and the page behavior data of each preset user group.

[0065] Specifically, after obtaining each preset user group, the similarity between the current user's behavior and that of each preset user group can be calculated based on the current user's page behavior data and the page behavior data of each preset user group.

[0066] For example, in one implementation, taking the page behavior data of a preset user group and the page behavior data of the current user as an example, the method for calculating the behavior similarity can be as follows: The page behavior data of each preset user in the preset user group is used as a data vector, and the behavior similarity between the current user and each preset user is calculated based on similarity calculation methods such as cosine similarity, Euclidean distance, and Pearson correlation coefficient. Then, the average behavior similarity between the current user and each preset user is calculated, and the resulting average behavior similarity can be used as the behavior similarity between the current user and the preset user group. In another implementation, since the preset user group is obtained through clustering, the page behavior data corresponding to the cluster center of the preset user group is used as a benchmark. The behavior similarity between the current user and the cluster center is calculated based on the current user's page behavior data and the page behavior data corresponding to the cluster center, and this behavior similarity is used as the behavior similarity between the current user and the preset user group. In yet another implementation, the average page behavior data of all preset users is first determined based on the page behavior data of each preset user in the preset user group, and then the behavior similarity between the current user and the preset user group is directly determined based on the current user's page behavior data and the average page behavior data.

[0067] Step 205: Select the target user group from the preset user groups based on the behavioral similarity between the current user and each preset user group.

[0068] In one implementation, the preset user group with the highest behavioral similarity to the current user can be directly used as the target user group. For example, as shown in Figure 3, assuming the current user's behavioral similarity with preset user group 1 is 0.7, with preset user group 2 is 0.2, and with preset user group 3 is 0.1, then preset user group 1 can be used as the target user group.

[0069] In another implementation, a similarity threshold can be set to select a preset user group whose behavior similarity to the current user exceeds the preset similarity threshold. This selected user group is then used as the target user group. The similarity threshold can be a pre-set standard value for group selection, which can be set according to actual needs, such as 0.5, 0.6, etc. As shown in Figure 3, assuming the current user's behavior similarity with preset user group 1 is 0.7, with preset user group 2 is 0.2, and with preset user group 3 is 0.1, and the similarity threshold is 0.6, then preset user group 1 can be used as the target user group.

[0070] In this embodiment, based on the behavioral similarity between the current user and each preset user group, a target user group is selected from the preset user groups. This can accurately find user groups with similar behavior and preferences to the current user, and provide a basis for recommending target page color schemes to the current user later.

[0071] Step 206: Based on the target user group's preference for each preset page color scheme, determine the target page color scheme from each preset page color scheme.

[0072] If the user group is selected based on the highest behavioral similarity, there will be only one target user group. If the user group is selected based on the behavioral similarity threshold, there may be one or more target user groups.

[0073] If there is only one target user group, one implementation method is to directly use the preset page color scheme corresponding to the highest preference level among the target user group's preferences for various preset page color schemes as the target page color scheme. Another implementation method is to determine, based on the current user's page behavior data, which preset user in the target user group has the highest behavioral similarity to the current user, and then directly determine the preferred page color scheme of the preset user with the highest behavioral similarity to the current user as the target page color scheme.

[0074] If there is more than one target user group, you can refer to steps 207 and 208 to determine the decision weight of each target user group based on the similarity of behavior between the current user and each target user group. Based on the decision weight of each target user group and the degree of preference of each target user group for each preset page color scheme, the target page color scheme is determined from each preset page color scheme.

[0075] In this embodiment, a target user group is selected from a preset user group, and the target page color scheme is determined based on the target user group's preference for each preset page color scheme. This simplifies subsequent calculations, as only the page color scheme preference of the target user group needs to be considered, simplifying the decision-making process and making it suitable for occasions with high real-time requirements.

[0076] Step 207: Determine the decision weight of each preset user group based on the behavioral similarity between the current user and each preset user group.

[0077] In this context, weight refers to the degree of importance of a factor or indicator relative to a certain thing. In this embodiment, decision weight can refer to the degree of importance of each preset user group in determining the current user's preferred color scheme. In this embodiment, the decision weight of each preset user group can be determined directly based on the behavioral similarity between the current user and each preset user group. The preset user group with higher behavioral similarity to the current user has a higher decision weight. Continuing the previous example, assuming the current user's behavioral similarity with preset user group 1 is 0.7, with preset user group 2 is 0.2, and with preset user group 3 is 0.1, then the decision weight of preset user group 1 can be 0.7, the decision weight of preset user group 2 can be 0.2, and the decision weight of preset user group 3 can be 0.1.

[0078] Step 208: Based on the decision weights of each preset user group and the degree of preference of each preset user group for each preset page color scheme, determine the target page color scheme from each preset page color scheme.

[0079] Specifically, the decision weights of each preset user group and the preference of each preset user group for each preset page color scheme can be weighted, summed, and averaged to calculate the recommendation score of each preset page color scheme, and the preset page color scheme corresponding to the maximum score can be selected as the target page color scheme.

[0080] Continuing the previous example, assume the decision weight for preset user group 1 is 0.7, the decision weight for preset user group 2 is 0.2, and the decision weight for preset user group 3 is 0.1. Preset user group 1's preference for color scheme 1, color scheme 2, and color scheme 3 is 80%, 10%, and 10%, respectively. Then, for preset user group 1, the recommendation scores for these three color schemes can be calculated as follows:

[0081] The recommended score for color scheme 1 is 0.7 * 0.8;

[0082] The recommended score for color scheme 2 is 0.7 * 0.1;

[0083] The recommended score for color scheme 3 is 0.7 * 0.1.

[0084] Similarly, recommendation scores for the three color schemes can be calculated for preset user groups 2 and 3. Finally, the recommendation scores for color scheme 1 are summed and averaged across these three preset user groups to obtain the final recommendation score for color scheme 1. The same process is repeated for color scheme 2 and color scheme 3. Assuming color scheme 1 receives the highest final recommendation score, it can be chosen as the target page color scheme.

[0085] In this embodiment, instead of selecting a target user group, the decision weights of each preset user group are determined based on the behavioral similarity between the current user and each preset user group. The target page color scheme is then determined based on these decision weights and the preference of each preset user group for each preset page color scheme. This method integrates the preference information of multiple user groups, resulting in a more refined and personalized page color scheme with stronger adaptability. It does not rely on a single user group, avoiding decision-making errors caused by improper selection of a single user group, leading to more stable decision results. Furthermore, behavioral data and preference information from all user groups are considered, resulting in high data utilization and improved decision-making quality.

[0086] It is worth noting that steps 205-206 and steps 207-208 are two optional steps. That is, after performing step 204, you can choose to perform steps 205-206 to determine the target page color scheme, or you can choose to perform steps 207-208 to determine the target page color scheme.

[0087] Step 209: Verify the color scheme of the target page.

[0088] Specifically, since different elements or components may have different colors within the target page's color scheme, it is necessary to verify the color matching of the target page's color scheme to prevent different color combinations within the target page's color scheme from being mismatched or uncoordinated, thereby affecting the overall effect of the page.

[0089] For example, color matching checks can include: color contrast checks, gradient transition checks between adjacent element colors, and color consistency checks. For color contrast checks, minimum contrast requirements can be defined based on the Web Content Accessibility Guidelines (WCAG) standard. For instance, a function can be used to calculate the contrast ratio between the foreground and background colors to determine if the contrast meets the requirements. For gradient transition checks, it can be determined whether the gradient transition between adjacent element colors is natural. For color consistency checks, it can be determined whether the colors of all elements on the page are within a preset color range, for example, all within the blue range, or whether the colors of all elements on the page contain any pre-defined potentially conflicting color schemes.

[0090] Step 210: Determine whether the color matching verification result of the target page color scheme is passed; if yes, proceed to step 212; if no, proceed to step 211.

[0091] Specifically, the color scheme of the target page is validated according to the above validation rules. If the validation passes, the current page's style attributes can be modified using script code, and style transition attributes can be set to adjust the current page's color scheme to the target page's color scheme. If the validation fails, the color scheme of the target page needs to be adjusted.

[0092] Step 211: Adjust the color scheme of the target page and continue to step 212.

[0093] Specifically, if the color scheme validation of the target page fails, the color combination of the target color scheme needs to be adjusted. For example, adjusting the color contrast, adjusting the gradient transition of adjacent element colors, and adjusting color consistency.

[0094] For example, when adjusting the contrast of a color, a color with a contrast lower than that of the standard color can be adjusted to a value close to the contrast value of the standard color. For gradient transitions between adjacent element colors, gradient rules can be formulated or defined to ensure natural color changes. For example, gradient color rules can be defined for adjacent elements, or linear or radial gradients can be used to create gradient effects between elements.

[0095] In this embodiment, by verifying the color scheme of the target page and adjusting it when the verification fails, the color scheme of the target page is automatically fine-tuned to prevent inconsistencies and mismatches between different color combinations in the target page, thereby further improving the user experience and increasing the user's sensory comfort.

[0096] Step 212: Use script code to modify the style properties of the current page and set style transition properties to adjust the color scheme of the current page to the color scheme of the target page.

[0097] The style transition property is used to define a smooth transition effect for color scheme changes when adjusting from the current page color scheme to the target page color scheme.

[0098] Specifically, after the color scheme of the target page has been validated and approved, or after adjustments have been made to the target page's color scheme, script code can be used to automatically modify the style attributes of the current page. Furthermore, to ensure that users do not experience a significant difference in color perception when switching from the current page's color scheme to the target page's color scheme, script code can be used to set style transition attributes, providing a smooth transition effect for the page style during the color change. After setting the style transition attributes, the current page's color scheme can be smoothly adjusted to the target page's color scheme.

[0099] For example, you can use transition properties in a Cascading Style Sheets (CSS) to set style transition properties. For instance, you can specify the property to transition, the duration of the transition effect, the speed curve of the transition, and the delay time of the transition effect.

[0100] In this embodiment, script code is used to modify the style attributes of the current page and set style transition attributes to adjust the color scheme of the current page to that of the target page. This ensures that the user does not experience a significant difference in sensory experience during the process of adjusting the color scheme of the current page to that of the target page. At the same time, the style transition attributes can also be used to enhance the interactivity and visual appeal of the webpage.

[0101] Step 213: Obtain feedback information on the current user's use of the target page color scheme, and determine the current user's preferred page color scheme based on the feedback information.

[0102] Feedback information can include satisfaction ratings for the target page's color scheme adjustments or any existing issues.

[0103] Specifically, after adjusting the current page color scheme to match the target page color scheme, users can fill in feedback information by clicking on "Feedback" or having a feedback menu automatically pop up on their electronic devices, based on the target page color scheme. After the user completes the feedback, the system retrieves the feedback data and determines the user's preferred page color scheme based on their satisfaction rating and identified issues. Optionally, the target page color scheme can be further adjusted based on the user's preferred color scheme, enabling real-time adjustment of the page color scheme according to the user's experience.

[0104] Step 214: Add the current user to the target user group.

[0105] Specifically, after determining the current user's preferred page color scheme based on usage feedback, the current user can be added to the target user group to expand the user base of the target user group. Furthermore, the current user's page behavior data can be added to the target user group to expand the data of the preset user group, providing updated and optimized references for continued use of the method provided in this embodiment.

[0106] Figure 4 is a flowchart illustrating the page color scheme adjustment method provided in this embodiment of the invention. The following example uses user browsing time as page behavior data to illustrate the page color scheme adjustment method provided by this invention. The page behavior data can also include other behaviors such as user click count and webpage adjustment frequency, which will not be specifically described here. Referring to Figure 4, the specific details are as follows:

[0107] First, when a user opens a webpage, the electronic device begins monitoring the user's current page browsing time. Three preset user groups are identified based on browsing time: less than 1 minute, 1-2 minutes, and more than 2 minutes. These are the short-duration preset user group, the medium-duration preset user group, and the long-duration preset user group. The short-duration preset user group includes a preset page color scheme with soft colors. The medium-duration preset user group includes a preset page color scheme with vibrant colors. The long-duration preset user group includes a preset page color scheme with high-contrast colors. At this point, based on the page color scheme adjustment method provided in the above embodiment, the preset user group that best matches the current user's browsing time can be determined, and the preset page color scheme corresponding to the matching preset user group is used as the target page color scheme. When determining the target page color scheme, a smooth transition is implemented during the application process to ensure the user uses the target page color scheme. After the user uses the target page color scheme, feedback can be obtained from the user's feedback button or feedback pop-up in the page settings. If the user provides positive feedback, the current color scheme is maintained; if the user provides negative feedback, i.e., they express discomfort or dislike, the color scheme is adjusted again based on the user feedback, and the process of monitoring page behavior data is returned, thus realizing real-time adjustment of the page color scheme for the user.

[0108] Optionally, after a user provides negative feedback, the user's feedback and color scheme adjustment can be automatically saved, and the user's page behavior data and feedback on the target page's color scheme can be added to the corresponding preset user group to update the preset user group.

[0109] In this embodiment, real-time page behavior data of the current user is collected to support the subsequent determination of the current user's possible preferred page color scheme based on the current user's page behavior data; page behavior data of preset users is obtained, and the preset users are clustered based on the preset user's page behavior data to obtain various preset user groups. Through clustering, the preset users are organized according to behavioral similarity, which supports the subsequent determination of the current user's preferred color scheme based on the similarity between the current user and each preset user group; a target user group can be selected from the preset user groups based on the behavioral similarity between the current user and each preset user group, and the target page color scheme can be determined based on the target user group's preference for each preset page color scheme. This simplifies subsequent calculations, as only the page color scheme preference of the target user group needs to be considered, simplifying the decision-making process and making it suitable for occasions with high real-time requirements; alternatively, a target user group can be not selected, and the decision weight of each preset user group can be determined based on the behavioral similarity between the current user and each preset user group, and the decision weight of each preset user group and each preset user group can be determined based on the decision weight of each preset user group and each preset user group. The target page color scheme is determined by the user group's preference for each preset page color scheme. This approach integrates preference information from multiple user groups, resulting in a more refined and personalized color scheme with greater adaptability. It avoids decision-making errors caused by inappropriate choices from a single user group, leading to more stable decision results. Behavioral data and preference information from all user groups are considered, resulting in high data utilization and improved decision quality. The color scheme of the target page is validated, and adjustments are made when validation fails. This automatic fine-tuning of the target page's color scheme prevents inconsistencies and mismatches between different color combinations, further enhancing the user experience and increasing sensory comfort. Finally, script code modifies the style attributes of the current page and sets style transition attributes to adjust the current page color scheme to the target page color scheme, ensuring a seamless sensory experience for users during the transition. Simultaneously, the interactivity and visual appeal of web pages can be enhanced based on style transition attributes; feedback information on the current user's use of the target page color scheme can be obtained, the user's preferred page color scheme can be determined based on the feedback information, and the current user can be added to the target user group, thereby expanding the data of the preset user group and providing reference items for continuous updates and optimizations for the continued use of the method provided in this embodiment.

[0110] Figure 5 is a schematic diagram of a page color adjustment device provided in an embodiment of the present invention. This device is suitable for performing the page color adjustment method provided in an embodiment of the present invention. As shown in Figure 5, the device may specifically include:

[0111] The data collection module 501 is used to collect the current user's page behavior data;

[0112] The calculation module 502 is used to calculate the behavioral similarity between the current user and each preset user group based on the current user's page behavior data and the page behavior data of each preset user group;

[0113] The determination module 503 is used to determine the target page color scheme from the preset page color schemes based on the similarity of the behavior of the current user and each preset user group and the preference of each preset user group for each preset page color scheme.

[0114] Adjustment module 504 is used to adjust the color scheme of the current page used by the current user to the color scheme of the target page.

[0115] In one embodiment, the device further includes a clustering module, which, before calculating the behavioral similarity between the current user and each preset user group based on the current user's page behavior data and the page behavior data of each preset user group, is used to:

[0116] Obtain page behavior data from a preset user;

[0117] Cluster the preset users based on their page behavior data to obtain various preset user groups;

[0118] Each preset user in each preset user group has page behavior data and preferred page color schemes. The preferred page color schemes of each preset user in each preset user group are used to determine the degree of preference of the corresponding preset user group for each preset page color scheme.

[0119] In one embodiment, the determining module 503 determines the target page color scheme from the preset page color schemes based on the behavioral similarity between the current user and each preset user group and the preference of each preset user group for each preset page color scheme, including:

[0120] Based on the behavioral similarity between the current user and each preset user group, a target user group is selected from the preset user groups;

[0121] The target page color scheme is determined from the preset page color schemes based on the target user group's preference for each preset page color scheme.

[0122] In one embodiment, the determining module 503 determines the target page color scheme from the preset page color schemes based on the behavioral similarity between the current user and each preset user group and the preference of each preset user group for each preset page color scheme, including:

[0123] Based on the similarity of the current user's behavior with each preset user group, the decision weight of each preset user group is determined.

[0124] Based on the decision weights of each preset user group and the degree of preference of each preset user group for each preset page color scheme, the target page color scheme is determined from each preset page color scheme.

[0125] In one embodiment, before adjusting the color scheme of the current page used by the current user to the color scheme of the target page, the adjustment module 504 is further configured to:

[0126] Validate the color scheme of the target page;

[0127] If the color scheme of the target page passes the validation, the current page color scheme used by the current user will be adjusted to the target page color scheme.

[0128] In one embodiment, the adjustment module 504 adjusts the color scheme of the current page used by the current user to the color scheme of the target page, including:

[0129] Use script code to modify the style properties of the current page and set style transition properties to adjust the color scheme of the current page to that of the target page.

[0130] In one embodiment, the adjustment module 504 is further configured to:

[0131] Obtain feedback information on the current user's use of the target page's color scheme, and determine the current user's preferred page color scheme based on the feedback information;

[0132] The current user is added to the target user group, where the current user has page behavior data and preferred page color schemes.

[0133] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the above-described division of functional modules is merely an example. In practical applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. The specific working process of the functional modules described above can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.

[0134] The device in this embodiment of the invention collects real-time page behavior data of the current user, providing support for determining the page color scheme that the current user may prefer based on the current user's page behavior data; it calculates the behavioral similarity between the current user and each preset user group based on the current user's page behavior data and the page behavior data of each preset user group; it determines the preset user groups by combining a large amount of historical page behavior data of preset users, providing a more accurate reference for the analysis and judgment of the current user's page behavior data; and it calculates the behavioral similarity between the current user and each preset user group based on the current user's page behavior data and the page behavior data of each preset user group, thus realizing the determination of the degree of behavioral similarity between the current user and preset users in each preset user group through page behavior data, providing support for subsequent determination. The system provides support for the current user's preferred page color scheme. Based on the behavioral similarity between the current user and various preset user groups, and the preference of each preset user group for each preset page color scheme, the target page color scheme is determined from the preset page color schemes. This achieves the selection of the most suitable target page color scheme for the current user based on the current user's behavioral data and the color scheme preferences of similar user groups. The system automatically adjusts the current page color scheme used by the current user to the target page color scheme, solving the problem in existing technologies where users can only manually adjust or select the page color scheme. This improves the user's visual and user experience, thereby enhancing the competitiveness of the website or application and attracting and retaining more users. Therefore, the method proposed in this embodiment, which determines the target page color scheme based on the behavioral similarity determined by the current user's page behavior data and the page behavior data of various preset user groups, and the preference of each preset user group for each preset page color scheme, is particularly suitable for automatically adjusting the page color scheme. It solves the problems of poor visual effects and inconvenience caused by the need for users to manually select the page color scheme in existing web page adjustments. Meanwhile, since this embodiment determines the target page color scheme based on user behavior data and the color preferences of similar user groups, it can automatically customize the most suitable page color scheme for each user without requiring manual adjustment by the user. This achieves personalized customization while also meeting the visual and emotional needs of different users, thereby improving user satisfaction.

[0135] This invention also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, it implements the page color adjustment method provided in any of the above embodiments.

[0136] This invention also provides a computer-readable medium having a computer program stored thereon, which, when executed by a processor, implements the page color adjustment method provided in any of the above embodiments.

[0137] Referring now to FIG6, a schematic diagram of a computer system 600 suitable for implementing an electronic device according to embodiments of the present invention is shown. The electronic device shown in FIG6 is merely an example and should not impose any limitation on the functionality and scope of use of the embodiments of the present invention.

[0138] As shown in Figure 6, the computer system 600 includes a central processing unit (CPU) 601, which can perform various appropriate actions and processes based on programs stored in read-only memory (ROM) 602 or programs loaded from storage section 608 into random access memory (RAM) 603. The RAM 603 also stores various programs and data required for the operation of the computer system 600. The CPU 601, ROM 602, and RAM 603 are interconnected via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.

[0139] The following components are connected to I / O interface 605: an input section 606 including a keyboard, mouse, etc.; an output section 607 including a cathode ray tube (CRT), liquid crystal display (LCD), etc., and speakers, etc.; a storage section 608 including a hard disk, etc.; and a communication section 609 including a network interface card such as a LAN card, modem, etc. The communication section 609 performs communication processing via a network such as the Internet. A drive 610 is also connected to I / O interface 605 as needed. A removable medium 611, such as a disk, optical disk, magneto-optical disk, semiconductor memory, etc., is installed on drive 610 as needed so that computer programs read from it can be installed into storage section 608 as needed.

[0140] In particular, according to the embodiments disclosed in this invention, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments disclosed in this invention include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via communication section 609, and / or installed from removable medium 611. When the computer program is executed by central processing unit (CPU) 601, it performs the functions defined above in the system of this invention.

[0141] It should be noted that the computer-readable medium shown in this invention can be a computer-readable signal medium or a computer-readable storage medium, or any combination thereof. A computer-readable storage medium can be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this invention, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In this invention, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. Computer-readable signal media can also be any computer-readable medium other than computer-readable storage media, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to: wireless, wire, optical fiber, RF, etc., or any suitable combination thereof.

[0142] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present invention. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in a block diagram or flowchart, and combinations of blocks in a block diagram or flowchart, may be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.

[0143] The modules and / or units described in the embodiments of the present invention can be implemented in software or hardware. The described modules and / or units can also be housed in a processor; for example, a processor can be described as including a data acquisition module, a calculation module, a determination module, and an adjustment module. The names of these modules do not necessarily limit the module itself.

[0144] In another aspect, the present invention also provides a computer-readable medium, which may be included in the device described in the above embodiments; or it may exist independently and not assembled into the device. The computer-readable medium carries one or more programs, which, when executed by the device, cause the device to include:

[0145] Collect current user's page behavior data; calculate the similarity between the current user's behavior and the page behavior data of each preset user group based on the current user's page behavior data and the page behavior data of each preset user group; determine the target page color scheme from each preset page color scheme based on the similarity between the current user's behavior and the preference of each preset user group for each preset page color scheme; adjust the current page color scheme used by the current user to the target page color scheme.

[0146] According to the technical solution of this invention, real-time collection of current user page behavior data provides support for determining the current user's possible preferred page color scheme based on the current user's page behavior data; calculation of the behavioral similarity between the current user and each preset user group based on the current user's page behavior data and the page behavior data of each preset user group; determination of preset user groups by combining historical page behavior data of a large number of preset users, providing more accurate reference items for the analysis and judgment of the current user's page behavior data; and calculation of the behavioral similarity between the current user and each preset user group based on the current user's page behavior data and the page behavior data of each preset user group, realizing the determination of the degree of behavioral similarity between the current user and preset users in each preset user group through page behavior data, providing support for subsequent... This method provides support for determining the page color scheme that the current user may prefer. Based on the behavioral similarity between the current user and various preset user groups, and the preference of each preset user group for each preset page color scheme, it determines the target page color scheme from among the preset page color schemes. This achieves the selection of the most suitable target page color scheme for the current user based on the current user's behavioral data and the color scheme preferences of similar user groups. It automatically adjusts the current page color scheme used by the current user to the target page color scheme, solving the problem in existing technologies where users can only manually adjust or select the page color scheme. This improves the user's visual and user experience, thereby enhancing the competitiveness of the website or application and attracting and retaining more users. Therefore, the method proposed in this embodiment, which determines the target page color scheme based on the behavioral similarity determined by the current user's page behavior data and the page behavior data of various preset user groups, and the preference of each preset user group for each preset page color scheme, is particularly suitable for automatically adjusting the page color scheme, solving the problems of poor visual effects and inconvenience caused by the need for users to manually select the page color scheme in existing web page adjustments. Meanwhile, since this embodiment determines the target page color scheme based on user behavior data and the color preferences of similar user groups, it can automatically customize the most suitable page color scheme for each user without requiring manual adjustment by the user. This achieves personalized customization while also meeting the visual and emotional needs of different users, thereby improving user satisfaction.

[0147] It should be understood that the various forms of processes shown above can be used, with steps reordered, added, or deleted. For example, the steps described in this invention can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution of this invention can be achieved, and this is not limited herein.

[0148] It should be noted that the collection, gathering, updating, analysis, processing, use, transmission, and storage of user personal information involved in this disclosed technical solution all comply with relevant laws and regulations, are used for legitimate purposes, and do not violate public order and good morals. Necessary measures are taken to prevent unauthorized access to user personal information data and to safeguard user personal information security, network security, and national security.

[0149] The specific embodiments described above do not constitute a limitation on the scope of protection of this invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can occur depending on design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this invention should be included within the scope of protection of this invention.

Claims

1. A method for adjusting page color scheme, characterized in that, include: Collect current user's page behavior data; The similarity between the current user's behavior and that of each preset user group is calculated based on the current user's page behavior data and the page behavior data of each preset user group. Based on the behavioral similarity between the current user and each preset user group and the preference of each preset user group for each preset page color scheme, the target page color scheme is determined from each preset page color scheme; Adjust the color scheme of the current page used by the current user to the color scheme of the target page.

2. The page color scheme adjustment method according to claim 1, characterized in that, Before calculating the behavioral similarity between the current user and each preset user group based on the current user's page behavior data and the page behavior data of each preset user group, the method further includes: acquiring the page behavior data of preset users; clustering the preset users based on the page behavior data of the preset users to obtain each preset user group; wherein, each preset user in each preset user group has page behavior data and a preferred page color scheme, and the preferred page color scheme of each preset user in each preset user group is used to determine the degree of preference of the corresponding preset user group for each preset page color scheme.

3. The page color scheme adjustment method according to claim 1 or 2, characterized in that, The step of determining a target page color scheme from the preset page color schemes based on the behavioral similarity between the current user and each preset user group and the preference of each preset user group for each preset page color scheme includes: selecting a target user group from the preset user groups based on the behavioral similarity between the current user and each preset user group; and determining the target page color scheme from the preset page color schemes based on the preference of the target user group for each preset page color scheme.

4. The page color scheme adjustment method according to claim 1 or 2, characterized in that, The step of determining the target page color scheme from the preset page color schemes based on the behavioral similarity between the current user and each preset user group and the preference of each preset user group for each preset page color scheme includes: determining the decision weight of each preset user group based on the behavioral similarity between the current user and each preset user group; and determining the target page color scheme from the preset page color schemes based on the decision weight of each preset user group and the preference of each preset user group for each preset page color scheme.

5. The page color scheme adjustment method according to claim 1, characterized in that, Before adjusting the color scheme of the current page used by the current user to the color scheme of the target page, the method further includes: verifying the color matching of the target page color scheme; and when the verification result of the color matching of the target page color scheme is passed, triggering the execution of adjusting the color scheme of the current page used by the current user to the color scheme of the target page.

6. The page color scheme adjustment method according to claim 1, characterized in that, The step of adjusting the color scheme of the current page used by the current user to the color scheme of the target page includes: using script code to modify the style attributes of the current page and set style transition attributes to adjust the color scheme of the current page to the color scheme of the target page.

7. The page color scheme adjustment method according to claim 3, characterized in that, The method further includes: obtaining the current user's feedback information on the target page color scheme, and determining the current user's preferred page color scheme based on the feedback information; adding the current user to the target user group, wherein the current user in the target user group has page behavior data and preferred page color scheme.

8. A page color scheme adjustment device, characterized in that, include: The data collection module is used to collect the current user's page behavior data; The calculation module is used to calculate the behavioral similarity between the current user and each preset user group based on the current user's page behavior data and the page behavior data of each preset user group; The determination module is used to determine the target page color scheme from the preset page color schemes based on the behavioral similarity between the current user and each preset user group and the preference of each preset user group for each preset page color scheme. The adjustment module is used to adjust the color scheme of the current page used by the current user to the color scheme of the target page.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the program, it implements the page color scheme adjustment method as described in any one of claims 1 to 7.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the program is executed by the processor, it implements the page color scheme adjustment method as described in any one of claims 1 to 7.