User type identification and interaction system and method based on context recognition

By obtaining user characteristic data and situational characteristic data, and using pre-built identity recognition models and matching degree calculations, a highly matching government recommendation solution is generated, which solves the problem of insufficient flexibility and accuracy in user type recommendation in the existing technology, and achieves It provides personalized and accurate government service recommendations, improving user satisfaction and government service quality.

CN118467848BActive Publication Date: 2024-09-10山东亚微软件股份有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410919345.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-10
Publication Date
2024-09-10
Estimated Expiration
2044-07-10

AI Technical Summary

Technical Problem

Existing interactive systems lack flexibility and accuracy when providing user type recommendations, cannot dynamically adapt to changes in user needs and service environments, and rely on keyword matching to understand the user's true intentions, ignoring the user's historical behavior and preferences.

Method used

By obtaining user characteristic data, the user type is determined based on the pre-built identity recognition model, and through the calculation of the matching degree between the contextual characteristic data and the preset government recommendation data, a multi-step matching and iterative process is performed to generate a highly matching government recommendation plan, which is flexible Adjust recommendation strategies to increase the relevance and effectiveness of your services.

Benefits of technology

Ensure that recommended government services are highly matched to user context, provide personalized and accurate services, improve user satisfaction and user experience, and improve the overall quality and user satisfaction of government services.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118467848B
    Figure CN118467848B
Patent Text Reader

Abstract

The present invention discloses a user type identification and interaction system and method based on context recognition, which specifically relates to the technical field of government service recommendation, including step 1: obtaining user feature data of I target users, and determining the corresponding user type based on a pre-built identity recognition model; I is an integer greater than zero; step 2: obtaining the context feature data and corresponding preset government recommendation data of the ith target user based on the user type, and obtaining the context matching degree of the ith target user based on the context feature data and the corresponding preset government recommendation data; i∈I; the present invention ensures that the recommended government service is highly matched with the user's actual context through a multi-step matching and iterative process. When processing abnormal matching types, the government system can flexibly adjust the recommendation strategy, ensure the relevance and effectiveness of the recommended service, optimize the user experience, and make the service obtained by the user more personalized and accurate.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of government service recommendation, and more specifically, to a user type identification and interaction system and method based on context recognition. Background Art

[0002] With the development of information technology, especially the widespread application of big data technology, modern interactive systems increasingly rely on the ability to process and analyze massive amounts of data. Big data technology makes it faster and more accurate to collect, store, analyze and extract large-scale user data, which is of great significance for understanding user behavior, optimizing services and improving user satisfaction. In many application areas, technology based on context recognition is becoming a key means to improve the quality and efficiency of interaction. Context recognition involves acquiring and analyzing various information in the user environment, such as location, time, device type and user interaction behavior, in order to provide a more accurate and personalized service experience. Among them, interactive systems that analyze user context feature data in real time according to user type and provide personalized services are more widely used in intelligent government services.

[0003] An intelligent government service system refers to a system that uses information technology and intelligent means to improve public services and management capabilities. With the rapid development of information technology, government services have also reduced the burden on service windows and improved service efficiency and convenience.

[0004] Existing interactive systems often fail to fully exploit the potential of context recognition, and they usually only focus on a single dimension of data, ignoring the complexity and variability of the environment in which the user is located. As a result, these systems often lack flexibility and accuracy in providing user type recommendations, and cannot dynamically adapt to changes in user needs and service environments.

[0005] The existing Chinese patent application with publication number CN112132727A discloses a method for pushing government services based on contextual big data of urban big data, including: step a, constructing a natural person context data model, and comprehensively describing and characterizing the social activity rules, individual business characteristics and social interaction status of a single natural person; step b, pushing contextual clustering government services; wherein step a includes: step a1, constructing a natural person basic attribute context; step a2, constructing a natural person life event context; step a3, constructing a natural person social relationship context; step b includes: step b1, context vector calculation; step b2, context clustering; step b3, government service push. This method can not only innovate the application model of government population data, but also help promote the transformation of government form to service paradigm, so that government departments can provide accurate personalized, refined and mobile services to the public.

[0006] Although the above-mentioned prior art can realize the push of government service, the above-mentioned method and prior art have at least the following defects:

[0007] 1. Relying solely on keyword matching, the system may not understand the true intention of the user's query, especially when the user uses synonyms or descriptive language, which can easily lead to inaccurate retrieval results;

[0008] 2. Keyword matching methods usually ignore users’ historical behaviors and preferences and cannot provide personalized government service recommendations based on users’ personal history and preferences;

[0009] To this end, the present invention provides a user type identification and interaction system and method based on context recognition. Summary of the invention

[0010] In order to overcome the above-mentioned defects of the prior art, the present invention provides a user type identification and interaction system and method based on context recognition to solve the problems raised in the above-mentioned background technology.

[0011] To achieve the above object, the present invention provides the following technical solution: a user type identification and interaction method based on context recognition, comprising:

[0012] Step 1: Obtain user feature data of I target users, and determine the corresponding user type based on a pre-built identity recognition model; I is an integer greater than zero;

[0013] Step 2: Based on the user type, the context feature data and the corresponding preset government affairs recommendation data of the i-th target user are obtained, and based on the context feature data and the corresponding preset government affairs recommendation data, the context matching degree of the i-th target user is obtained; i∈I;

[0014] Step 3: Compare and analyze the context matching degree of the i-th target user to determine the context matching degree type of the target user; the context matching degree type includes a normal matching type and an abnormal matching type;

[0015] Step 4: Based on the abnormal matching type, obtain the user behavior data corresponding to the nth user type and obtain the mth government affairs target data, where n and m are both integers greater than zero, and the initial value of n is 1;

[0016] Step 5: Match the user behavior data corresponding to the nth user type with the mth government target data. If they do not match, set m=m+1 and jump to step 4. If they match, use the mth government target data matched by the user behavior data corresponding to the nth user type as a set of government recommendation plans, set n=n+1 and jump to step 4.

[0017] Step 6: Repeat steps 4 to 5 above until n=I, end the loop, obtain H groups of government affairs recommendation plans, interact according to the H groups of government affairs recommendation plans, and perform government affairs service interactions for I target users, where H is an integer set greater than zero.

[0018] Furthermore, the generation logic of the pre-built identity recognition model includes:

[0019] Each group of historical user analysis training data is obtained, wherein the historical user analysis training data includes user feature data and corresponding user types, the user types corresponding to each group of user feature data are digitally labeled, the historical user analysis training data is divided into a type analysis training set and a type analysis test set, a classifier is constructed, the user's basic information, behavior data, transaction records, social interactions, and interest preferences in the type analysis training set are used as the input of the classifier, the digital labels in the type analysis training set are used as the output of the classifier, the classifier is trained to obtain an initial classifier, the initial classifier is tested using the type analysis test set, and the initial classifier that meets a preset accuracy is output as an identity recognition model; the classifier is one of a decision tree classification model, a random forest classification model, a support vector machine classification model, a logistic regression network model, or a neural network model.

[0020] Further, the context feature data includes user location, time data, device information, and interaction data;

[0021] Among them, the user location is the current physical location of the target user, which can be obtained through the GPS data of the user's device or through IP address resolution; the time data refers to the time data of the target user logging into the government affairs system, which is obtained by extracting the timestamp; the device information obtains the operating system type through the device's system API, and the interaction data is the browsing time and number of clicks of the target user in the government affairs system;

[0022] The corresponding preset government affairs recommendation data includes service content, service time, service type and environmental adaptability.

[0023] Furthermore, the context matching degree refers to the matching degree between the context feature data of the i-th target user and the corresponding preset government affairs recommendation data;

[0024] Based on the situational feature data and the corresponding preset government affairs recommendation data, the method for obtaining the situational matching degree of the i-th target user is:

[0025] Convert the context feature data of the i-th target user into the first feature vector , convert the corresponding preset government recommendation data into the second feature vector ;

[0026] Calculate the first eigenvector With the second eigenvector The similarity between them is calculated as:

[0027] ;

[0028] In the formula, For situation matching, is the first eigenvector The rth situational feature of , R is the total number of situational features, is the second eigenvector The rth situational feature of .

[0029] Furthermore, the method for comparing and analyzing the context matching degree of the i-th target user includes:

[0030] Comparing the situation matching degree with a preset situation matching degree threshold;

[0031] If the context matching degree is greater than or equal to the preset context matching degree threshold, it is determined that the recommended service of the government affairs system matches the context of the target user, and a normal matching type is generated;

[0032] If the context matching degree is less than the preset context matching degree threshold, it is determined that the recommended service of the government affairs system does not match the context of the target user, and an abnormal matching type is generated.

[0033] Further, the user behavior data includes a demand service coefficient of the nth user type in the government affairs system; the government affairs target data includes a government affairs matching coefficient corresponding to the government affairs recommendation data; the government affairs recommendation data has one and only one government affairs matching coefficient;

[0034] The demand service coefficient of the nth user type is calculated by the following formula:

[0035] ;

[0036] Where: is the demand service coefficient of the nth user type, is the number of times the keyword is repeated. is the number of keyword clicks, The length of time users stay on the page corresponding to the keyword they click. is the weight factor of the number of keyword repetitions, is the weight factor of the number of keyword clicks, The weight factor for the length of time a user stays on the page corresponding to the keyword they click.

[0037] Furthermore, the method for generating the government affairs matching coefficient includes:

[0038] Get the maximum context matching and text difference coefficient;

[0039] According to the maximum situation matching degree and the text difference coefficient, the government affairs matching coefficient is obtained by formula calculation; the calculation formula is: ;

[0040] Where: represents the government affairs matching coefficient, represents the maximum situation matching degree, Represents the coefficient of text difference.

[0041] Furthermore, the method for generating the text difference coefficient includes:

[0042] Acquire text difference data of the recommendation service, wherein the text difference data includes a text length difference and a word count difference;

[0043] The text difference data is dimensionless and then calculated using a formula to obtain the text difference coefficient. The calculation formula is:

[0044] ;

[0045] Where: represents the text difference coefficient, Indicates the text length difference, Indicates the difference in word count. The weight factor representing the text length difference, A weight factor representing the difference in word count.

[0046] Furthermore, the method of matching the user behavior data corresponding to the nth user type with the mth government affairs target data includes:

[0047] Compare the demand service coefficient of the nth user type with the mth government affairs matching coefficient;

[0048] If the demand service coefficient is greater than the government affairs matching coefficient, it is determined that the mth government affairs target data does not match the user behavior data of the nth user type;

[0049] If the demand service coefficient is less than or equal to the government affairs matching coefficient, the government affairs matching coefficient of the mth government affairs target data is compared with a set government affairs matching coefficient threshold; the government affairs matching coefficient threshold is set according to the demand service coefficient of the nth user type;

[0050] If the government affairs matching coefficient is less than the government affairs matching coefficient threshold, it is determined that the mth government affairs target data does not match the user behavior data of the nth user type;

[0051] If the government affairs matching coefficient is greater than or equal to the government affairs matching coefficient threshold, determining whether the government affairs matching coefficient is the maximum value among all remaining government affairs matching coefficients;

[0052] If so, it is determined that the mth government target data matches the user behavior data of the nth user type;

[0053] If not, it is determined that the mth government affairs target data does not match the user behavior data of the nth user type.

[0054] In a second aspect, the present invention provides a user type identification and interaction system based on context recognition, which is used to implement the above-mentioned user type identification and interaction method based on context recognition, including:

[0055] A user type analysis module is used to obtain user feature data of I target users and determine the corresponding user type based on a pre-built identity recognition model; I is an integer greater than zero;

[0056] The context matching module obtains the context feature data and the corresponding preset government affairs recommendation data of the i-th target user based on the user type, and obtains the context matching degree of the i-th target user based on the context feature data and the corresponding preset government affairs recommendation data; i∈I;

[0057] A comparison module is used to compare and analyze the context matching degree of the i-th target user to determine the context matching degree type of the target user; the context matching degree type includes a normal matching type and an abnormal matching type;

[0058] A data acquisition module, which acquires user behavior data corresponding to the nth user type based on the abnormal matching type, and acquires the mth government affairs target data, where n and m are both integers greater than zero, and the initial value of n is 1;

[0059] A matching module is used to match the user behavior data corresponding to the nth user type with the mth government affairs target data. If there is no match, m=m+1 is set and the data acquisition module is jumped. If there is a match, the mth government affairs target data matched by the user behavior data corresponding to the nth user type is used as a set of government affairs recommendation plans, and n=n+1 is set, and the data acquisition module is jumped.

[0060] The scheme generation module is used to repeat the above data acquisition module to the matching module until n=I, end the loop, obtain H groups of government affairs recommendation schemes, interact according to the H groups of government affairs recommendation schemes, and perform government affairs service interactions for I target users, where H is an integer set greater than zero.

[0061] Technical effects and advantages of the present invention:

[0062] The present invention ensures that the recommended government services are highly matched with the user's actual situation through a multi-step matching and iterative process. When processing abnormal matching types, the government system can flexibly adjust the recommendation strategy to ensure the relevance and effectiveness of the recommended services, optimize the user experience, and make the services obtained by users more personalized and accurate, thereby improving user satisfaction and usage experience, thereby ensuring that the government system can provide users with efficient, personalized and accurate service recommendations, thereby improving the overall quality of government services and user satisfaction. BRIEF DESCRIPTION OF THE DRAWINGS

[0063] Figure 1 This is a flow chart of the user type identification and interaction method based on context recognition of Example 1;

[0064] Figure 2 A schematic diagram of a user type identification and interaction system based on context recognition according to Example 2;

[0065] Figure 3 This is a schematic diagram of an electronic device according to Embodiment 3;

[0066] Figure 4 A schematic diagram of a computer-readable storage medium of Example 4. DETAILED DESCRIPTION

[0067] 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.

[0068] In addition, the accompanying drawings are only schematic illustrations of the present invention and are not necessarily drawn to scale. The same reference numerals in the figures represent the same or similar parts, and their repeated description will be omitted. Some of the block diagrams shown in the accompanying drawings are functional entities and do not necessarily correspond to physically or logically independent entities. The functional entities can be implemented in software form, or implemented in one or more hardware modules or integrated circuits, or implemented in different networks and / or processor methods and / or microcontroller methods.

[0069] It should be understood that, although the terms "first", "second", etc. may be used herein to describe various units, these units should not be limited by these terms. These terms are used only to distinguish one unit from another unit. For example, without departing from the scope of the exemplary embodiments, a first unit may be referred to as a second unit, and a similar second unit may be referred to as a first unit. The term "and / or" used herein includes any and all combinations of one or more of the listed associated items.

[0070] Example 1

[0071] See also Figure 1 As shown, this embodiment discloses a user type identification and interaction method based on context recognition, including:

[0072] Step 1: Obtain user feature data of I target users, and determine the corresponding user type based on a pre-built identity recognition model; I is an integer greater than zero;

[0073] It should be noted that the target users are users who log in to the government affairs system, and the user types include but are not limited to ordinary citizens, entrepreneurs, students and educators, the elderly, the disabled and special groups, foreigners and government employees, etc.;

[0074] The user characteristic data includes basic user information, behavioral data, transaction records, social interactions and interest preferences; wherein, the basic user information is static data related to the user's personal identity and background, and the basic user information includes but is not limited to information such as the user's name, age, gender, occupation and place of residence; the behavioral data are various operation records generated by the target user when using the government affairs system, the transaction records are specific matters handled by the target user in the government affairs system, the social interactions are the target user's social behaviors and interaction records in the government affairs system, and the interest preferences are the target user's interest level and preference tendencies in specific content, services or products.

[0075] In a specific implementation, the generation logic of the pre-built identity recognition model includes:

[0076] Each group of historical user analysis training data is obtained, wherein the historical user analysis training data includes user feature data and corresponding user types, and the user types corresponding to each group of user feature data are digitally labeled. For example, the user type corresponding to the user feature data of ordinary citizens is labeled "1", the user type corresponding to the user feature data of entrepreneurs is labeled "2", the user type corresponding to the user feature data of students and educators is labeled "3", the user type corresponding to the user feature data of the elderly is labeled "4", and the user type corresponding to the user feature data of the disabled and special groups is labeled "5", etc. The historical user analysis training data is divided into a type analysis training set and a type analysis test set, and a classifier is constructed. The basic information, behavioral data, transaction records, social interactions, and interest preferences of users in the type analysis training set are used as the input of the classifier, and the digital labels in the type analysis training set are used as the output of the classifier. The classifier is trained to obtain an initial classifier, and the initial classifier is tested using the type analysis test set, and the initial classifier that meets the preset accuracy is output as the identity recognition model.

[0077] The user feature data is input into the identity recognition model to obtain the corresponding user type; the classifier is specifically one of a decision tree classification model, a random forest classification model, a support vector machine classification model, a logistic regression network model or a neural network model.

[0078] The following are illustrative examples:

[0079] User basic information: User A, 30 years old, female, teacher, living in Shandong.

[0080] Behavioral data: User A visited an education page, searched for “teacher qualification certificate application”, and stayed there for a long time.

[0081] Transaction record: User A has previously applied for academic certification and is currently applying for a teacher's qualification certificate.

[0082] Social interaction: User A is active in education forums and often communicates with other teachers.

[0083] Interest Preference: User A subscribes to news notifications about education policy updates.

[0084] Then, based on the above user feature data, the identity recognition model is input to output students and educators with the number "3". Identifying multiple identities of users through the identity recognition model and preparing for context recognition will help improve the accuracy of personalized government service recommendations and user satisfaction, thereby more comprehensively understanding user needs and providing more accurate services.

[0085] Step 2: Based on the user type, the context feature data and the corresponding preset government affairs recommendation data of the i-th target user are obtained, and based on the context feature data and the corresponding preset government affairs recommendation data, the context matching degree of the i-th target user is obtained; i∈I;

[0086] The context feature data includes user location, time data, device information, and interaction data;

[0087] Among them, the user location is the current physical location of the target user, which can be obtained through the GPS data of the user's device or through IP address resolution; the time data refers to the time data of the target user logging into the government system, which is obtained by extracting the timestamp; the device information obtains the operating system type through the device's system API, and the interaction data is the browsing time and number of clicks of the target user in the government system.

[0088] It should be noted that: the user location, time data, device information and interaction data are all identified to prevent personal identity information leakage; it should be noted that: the method of obtaining the user location, time data, device information and interaction data is not a technical problem of this application, and any model or method that can obtain the user location, time data, device information and interaction data can be used as the application object of this solution;

[0089] The corresponding preset government affairs recommendation data includes service content, service time, service type and environment adaptability, etc.;

[0090] In order to better understand the situational feature data and the corresponding preset government affairs recommendation data, a specific example is given:

[0091] Example of contextual feature data for the i-th target user:

[0092] User location: a school in Jinan;

[0093] Time data: 9:00-17:00;

[0094] Device information: computer;

[0095] Interaction data: browsing time and number of clicks on pages related to teacher qualification certificates;

[0096] Corresponding preset government affairs recommended data example:

[0097] Service content: Teacher qualification certificate renewal;

[0098] Service hours: working hours (9:00-17:00);

[0099] Service type: online service;

[0100] Environmental adaptability: in the office, at home;

[0101] It is further explained that the contextual matching degree refers to the degree of matching between the contextual feature data of the i-th target user and the corresponding preset government affairs recommendation data. A high contextual matching degree indicates that the government affairs recommendation data of the recommended service is highly correlated with the contextual feature data of the i-th target user. Otherwise, it indicates a low contextual matching degree.

[0102] Specifically, based on the context feature data and the corresponding preset government affairs recommendation data, the method for obtaining the context matching degree of the i-th target user is:

[0103] Convert the context feature data of the i-th target user into the first feature vector , convert the corresponding preset government recommendation data into the second feature vector ;

[0104] Calculate the first eigenvector With the second eigenvector The similarity between them is calculated as:

[0105] ;

[0106] In the formula, For situation matching, is the first eigenvector The rth situational feature of , R is the total number of situational features, is the second eigenvector The rth situational feature of .

[0107] It should be noted that the above similarity algorithm is the Euclidean distance formula, which is a distance value (the smaller the distance, the more similar it is). In order to make the situation matching value as large as possible, a negative sign is used.

[0108] This step can calculate the context matching degree by obtaining the context feature data of the i-th target user and the corresponding preset government affairs recommendation data. The context matching degree reflects the correlation and adaptability between the user's current context feature data and the corresponding preset government affairs recommendation data, which can be used for personalized service recommendations.

[0109] Step 3: Compare and analyze the context matching degree of the i-th target user to determine the context matching degree type of the target user; the context matching degree type includes a normal matching type and an abnormal matching type;

[0110] In implementation, the method for comparing and analyzing the context matching degree of the i-th target user includes:

[0111] Comparing the situation matching degree with a preset situation matching degree threshold;

[0112] If the context matching degree is greater than or equal to the preset context matching degree threshold, it is determined that the recommended service of the government affairs system matches the context of the target user, and a normal matching type is generated;

[0113] If the context matching degree is less than the preset context matching degree threshold, it is determined that the recommended service of the government affairs system does not match the context of the target user, and an abnormal matching type is generated;

[0114] Among them, the context matching threshold is that the staff calculates the context matching degree corresponding to the i-th target user multiple times in the experimental environment, that is, calculates v context matching degrees at a time, and performs multiple calculations; calculates the average of the context matching degrees corresponding to the i-th target user respectively, and uses the average of the v context matching degrees as the context matching threshold of the i-th target user.

[0115] It should be noted that: when there is a normal matching type, it means that the situational feature data matches the corresponding preset government affairs recommendation data, and therefore the interaction continues according to the government affairs recommendation data; on the contrary, when there is an abnormal matching type, it means that the situational feature data does not match the corresponding preset government affairs recommendation data. In order to provide target users with more accurate personalized services, the government affairs system will pre-allocate government affairs recommendation data to target users of different user types to ensure that the target users can obtain the most appropriate personalized service recommendations and improve the relevance and adaptability between the user's current situation and the recommended service.

[0116] Step 4: Based on the abnormal matching type, obtain the user behavior data corresponding to the nth user type and obtain the mth government affairs target data, where n and m are both integers greater than zero, and the initial value of n is 1;

[0117] It should be noted that: the user behavior data includes the demand service coefficient of the nth user type in the government affairs system; the government affairs target data includes the government affairs matching coefficient corresponding to the government affairs recommendation data; the government affairs recommendation data has one and only one government affairs matching coefficient.

[0118] The demand service coefficient of the nth user type is calculated by the following formula:

[0119] ;

[0120] Where: is the demand service coefficient of the nth user type, is the number of times the keyword is repeated. is the number of keyword clicks, The length of time users stay on the page corresponding to the keyword they click. is the weight factor of the number of keyword repetitions, is the weight factor of the keyword click count, The weight factor is the length of time that a user stays on a page corresponding to a keyword when clicking on it. It should be noted that the number of times the keyword is repeated, the number of times the keyword is clicked, and the length of time that a user stays on a page corresponding to a keyword when clicking on it are pre-stored in the government affairs system database.

[0121] Specifically, the method for generating the government affairs matching coefficient includes:

[0122] Get the maximum context matching and text difference coefficient;

[0123] According to the maximum situation matching degree and the text difference coefficient, the government affairs matching coefficient is obtained by formula calculation; the calculation formula is: ;

[0124] Where: represents the government affairs matching coefficient, represents the maximum situation matching degree, represents the coefficient of text difference;

[0125] It should be understood that: the closer the value of the government affairs matching coefficient is to 1, the more the required service of the nth user type matches the recommended service;

[0126] The method for generating the text difference coefficient includes:

[0127] Acquire text difference data of the recommendation service, wherein the text difference data includes a text length difference and a word count difference;

[0128] The text difference data is dimensionless and then calculated using a formula to obtain the text difference coefficient. The calculation formula is:

[0129] ;

[0130] Where: represents the text difference coefficient, Indicates the text length difference, Indicates the difference in word count. The weight factor representing the text length difference, The weight factor representing the difference in word count;

[0131] It should be noted that: the larger the value of the text difference coefficient, the less accurate the keywords of the recommended service;

[0132] Step 5: Match the user behavior data corresponding to the nth user type with the mth government target data. If they do not match, set m=m+1 and jump to step 4. If they match, use the mth government target data matched by the user behavior data corresponding to the nth user type as a set of government recommendation plans, set n=n+1 and jump to step 4.

[0133] In implementation, the method of matching the user behavior data corresponding to the nth user type with the mth government affairs target data includes:

[0134] Compare the demand service coefficient of the nth user type with the mth government affairs matching coefficient;

[0135] If the demand service coefficient is greater than the government affairs matching coefficient, it is determined that the mth government affairs target data does not match the user behavior data of the nth user type;

[0136] If the demand service coefficient is less than or equal to the government affairs matching coefficient, the government affairs matching coefficient of the mth government affairs target data is compared with a set government affairs matching coefficient threshold; the government affairs matching coefficient threshold is set according to the demand service coefficient of the nth user type;

[0137] If the government affairs matching coefficient is less than the government affairs matching coefficient threshold, it is determined that the mth government affairs target data does not match the user behavior data of the nth user type;

[0138] If the government affairs matching coefficient is greater than or equal to the government affairs matching coefficient threshold, determining whether the government affairs matching coefficient is the maximum value among all remaining government affairs matching coefficients;

[0139] If so, it is determined that the mth government target data matches the user behavior data of the nth user type;

[0140] If not, it is determined that the mth government target data does not match the user behavior data of the nth user type;

[0141] It should be noted that: each user type is associated with a set government affairs matching coefficient threshold; the government affairs matching coefficient threshold is determined according to the user type itself; the demand service coefficient of the nth user type is matched with the mth government affairs matching coefficient, and the matching is performed in order from small to large according to the n user type numbers; the government affairs matching coefficient threshold is obtained in the same way as the situational matching threshold.

[0142] Example: Assume that there are three demand service coefficients corresponding to user types, namely the demand service coefficient corresponding to the first user type, the demand service coefficient corresponding to the second user type, and the demand service coefficient corresponding to the third user type; the system automatically assigns a government affairs matching coefficient threshold of 0.9 to the first user type, a government affairs matching coefficient threshold of 0.8 to the second user type, and a government affairs matching coefficient threshold of 0.7 to the third user type; and assume that the corresponding government affairs matching coefficients are 0.92, 0.84, and 0.75, respectively; according to the above description, when an abnormal matching type occurs, the demand service coefficient of the nth user type is compared with the mth government affairs matching coefficient; that is, starting from the user type with serial number 1; therefore, the demand service coefficient of the first user type is compared with the mth government affairs matching coefficient; if the demand service coefficient of the first user type is greater than the mth government affairs matching coefficient; then it is determined that the mth government affairs target data does not match the user behavior data of the first user type; at this time, let m=m+1 and jump to step 4; if the 1st If the demand service coefficient of the first user type is less than or equal to the mth government affairs matching coefficient, the first government affairs matching coefficient is compared with the set government affairs matching coefficient threshold. According to the above assumption, since the government affairs matching coefficient threshold of the first user type is 0.9, if the government affairs matching coefficient of the first user type is less than 0.9, it is determined that the mth government affairs target data does not match the user behavior data of the first user type. At this time, let m=m+1 and jump to step 4. On the contrary, if the government affairs matching coefficient of the first user type is greater than or equal to 0.9, it is further determined whether the government affairs matching coefficient is the maximum value of all the remaining government affairs matching coefficients. According to the above assumption, the three government affairs matching coefficients are 0.92, 0.84 and 0.75 respectively. Therefore, if the mth government affairs matching coefficient is 0.91, it is determined that the mth government affairs target data matches the user behavior data of the first user type. On the contrary, it is determined that the mth government affairs target data does not match the user behavior data of the first user type. At this time, let m=m+1 and jump to step 4.

[0143] Further explanation is: Following the above example, since the matching of user behavior data and government target data is carried out according to the user type number from small to large, every time the demand service coefficient corresponding to a user type matches the government matching coefficient, the total number of government matching coefficients will be reduced by one, and the eliminated government matching coefficient will no longer participate in the subsequent matching process, nor will it be used to determine the maximum value of the remaining government matching coefficients, that is, the matched government recommendation data will no longer participate in the matching process;

[0144] Step 6: Repeat the above steps 4 to 5 until n=I, end the loop, obtain H groups of government affairs recommendation schemes, interact according to the H groups of government affairs recommendation schemes, and interact with government affairs services for I target users, where H is an integer set greater than zero;

[0145] It should be noted that each group of government affairs recommendation plans contains a recommended service that matches a demand service coefficient corresponding to a user type. Therefore, when making recommendations based on group H of government affairs recommendation plans, the user behavior data corresponding to different user types and the government affairs target data are matched, thereby improving the adaptability and flexibility of the government affairs system and recommending personalized services for target users.

[0146] This embodiment ensures that the recommended government services are highly matched with the user's actual situation through a multi-step matching and iterative process. When processing abnormal matching types, the government system can flexibly adjust the recommendation strategy to ensure the relevance and effectiveness of the recommended services, optimize the user experience, and make the services obtained by users more personalized and accurate, thereby improving user satisfaction and usage experience, thereby ensuring that the government system can provide users with efficient, personalized and accurate service recommendations, thereby improving the overall quality of government services and user satisfaction.

[0147] Example 2

[0148] See also Figure 2 As shown, this embodiment provides a user type identification and interaction system based on context recognition, including:

[0149] A user type analysis module is used to obtain user feature data of I target users and determine the corresponding user type based on a pre-built identity recognition model; I is an integer greater than zero;

[0150] The context matching module obtains the context feature data and the corresponding preset government affairs recommendation data of the i-th target user based on the user type, and obtains the context matching degree of the i-th target user based on the context feature data and the corresponding preset government affairs recommendation data; i∈I;

[0151] A comparison module is used to compare and analyze the context matching degree of the i-th target user to determine the context matching degree type of the target user; the context matching degree type includes a normal matching type and an abnormal matching type;

[0152] A data acquisition module, which acquires user behavior data corresponding to the nth user type based on the abnormal matching type, and acquires the mth government affairs target data, where n and m are both integers greater than zero, and the initial value of n is 1;

[0153] A matching module is used to match the user behavior data corresponding to the nth user type with the mth government affairs target data. If there is no match, m=m+1 is set and the data acquisition module is jumped. If there is a match, the mth government affairs target data matched by the user behavior data corresponding to the nth user type is used as a set of government affairs recommendation plans, and n=n+1 is set, and the data acquisition module is jumped.

[0154] The scheme generation module is used to repeat the above data acquisition module to the matching module until n=I, end the loop, obtain H groups of government affairs recommendation schemes, interact according to the H groups of government affairs recommendation schemes, and perform government affairs service interactions for I target users, where H is an integer set greater than zero.

[0155] Example 3

[0156] See also Figure 3 As shown, this embodiment provides an electronic device 500. The electronic device 500 may include one or more processors and one or more memories. The memories store computer-readable codes, and when the computer-readable codes are executed by one or more processors, the user type identification and interaction method based on context recognition as described above may be executed.

[0157] The system according to the embodiment of the present application can also be used Figure 3 The electronic device architecture shown in FIG. Figure 3 As shown, the electronic device 500 may include a bus 501, one or more CPUs 502, a read-only memory (ROM) 503, a random access memory (RAM) 504, a communication port 505 connected to a network, an input / output 506, a hard disk 507, etc. The storage device in the electronic device 500, such as the ROM 503 or the hard disk 507, may store the user type identification and interaction method based on context recognition provided by the present application. Further, the electronic device 500 may also include a user interface 508. Of course, Figure 3 The architecture shown is only exemplary and can be omitted according to actual needs when implementing different devices. Figure 3 One or more components of an electronic device are shown.

[0158] Example 4

[0159] See also Figure 4 As shown, this embodiment provides a computer-readable storage medium storing instructions. When the instructions are executed on a computer, the computer executes the user type identification and interaction method based on context recognition of Embodiment 1.

[0160] The formulas involved in the above are all calculated by removing dimensions and taking their numerical values. They are a formula that is closest to the actual situation obtained by collecting a large amount of data and performing software simulation. The weight factors in the formula and the preset thresholds in the analysis process are set by technicians in this field according to actual conditions or obtained by simulating a large amount of data; the size of the weight factor is to quantify each parameter to obtain a specific value for subsequent comparison. The size of the weight factor depends on the amount of sample data and the corresponding processing coefficient initially set by technicians in this field for each group of sample data; as long as it does not affect the proportional relationship between the parameter and the quantized value.

[0161] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

[0162] Finally: The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A user type identification and interaction method based on context recognition, characterized in that: include: Step 1: Obtain user feature data of I target users and determine the corresponding user type based on a pre-built identity recognition model; I is an integer greater than zero; The generation logic of the pre-built identity recognition model includes: Obtain each group of historical user analysis training data, wherein the historical user analysis training data includes user feature data and corresponding user types, digitally annotate the user types corresponding to each group of user feature data, divide the historical user analysis training data into a type analysis training set and a type analysis test set, construct a classifier, use the user's basic information, behavior data, transaction records, social interactions, and interest preferences in the type analysis training set as the input of the classifier, use the digital annotations in the type analysis training set as the output of the classifier, train the classifier to obtain an initial classifier, test the initial classifier using the type analysis test set, and output the initial classifier that meets a preset accuracy as an identity recognition model; the classifier is one of a decision tree classification model, a random forest classification model, a support vector machine classification model, a logistic regression network model, or a neural network model; Step 2: Based on the user type, the context feature data and the corresponding preset government affairs recommendation data of the i-th target user are obtained, and based on the context feature data and the corresponding preset government affairs recommendation data, the context matching degree of the i-th target user is obtained; i∈I; The context feature data includes user location, time data, device information, and interaction data; Among them, the user location is the current physical location of the target user, which is obtained through the GPS data of the user's device or through IP address resolution; the time data refers to the time data of the target user logging into the government affairs system, which is obtained by extracting the timestamp; the device information obtains the operating system type through the device's system API, and the interaction data is the browsing time and number of clicks of the target user in the government affairs system; The corresponding preset government affairs recommendation data includes service content, service time, service type and environmental adaptability; Step 3: Compare and analyze the context matching degree of the i-th target user to determine the context matching degree type of the target user; the context matching degree type includes a normal matching type and an abnormal matching type; Step 4: Based on the abnormal matching type, obtain the user behavior data corresponding to the nth user type and obtain the mth government affairs target data, where n and m are both integers greater than zero, and the initial value of n is 1; The user behavior data includes the demand service coefficient of the nth user type in the government affairs system; the government affairs target data includes the government affairs matching coefficient corresponding to the government affairs recommendation data; the government affairs recommendation data has one and only one government affairs matching coefficient; The demand service coefficient of the nth user type is calculated by the following formula: ; Where: is the demand service coefficient of the nth user type, is the number of times the keyword is repeated. is the number of keyword clicks, The length of time users stay on the page corresponding to the keyword they click. is the weight factor of the number of keyword repetitions, is the weight factor of the number of keyword clicks, The weight factor for the length of time a user stays on the page corresponding to the keyword they clicked; The method for generating the government affairs matching coefficient includes: Get the maximum context matching and text difference coefficient; According to the maximum situation matching degree and the text difference coefficient, the government affairs matching coefficient is obtained by formula calculation; the calculation formula is: ; Where: represents the government affairs matching coefficient, represents the maximum situation matching degree, represents the coefficient of text difference; The method for generating the text difference coefficient includes: Acquire text difference data of the recommendation service, wherein the text difference data includes a text length difference and a word count difference; The text difference data is dimensionless and then calculated using a formula to obtain the text difference coefficient. The calculation formula is: ; Where: represents the text difference coefficient, Indicates the text length difference, Indicates the difference in word count. The weight factor representing the text length difference, The weight factor representing the difference in word count; Step 5: Match the user behavior data corresponding to the nth user type with the mth government target data. If they do not match, set m=m+1 and jump to step 4. If they match, use the mth government target data matched by the user behavior data corresponding to the nth user type as a set of government recommendation plans, set n=n+1 and jump to step 4. Step 6: Repeat steps 4 to 5 above until n=I, end the loop, obtain H groups of government affairs recommendation plans, interact according to the H groups of government affairs recommendation plans, and perform government affairs service interactions for I target users, where H is an integer set greater than zero.

2. The user type identification and interaction method based on context recognition according to claim 1, characterized in that: The context matching degree refers to the matching degree between the context feature data of the i-th target user and the corresponding preset government affairs recommendation data; Based on the situational feature data and the corresponding preset government affairs recommendation data, the method for obtaining the situational matching degree of the i-th target user is: Convert the context feature data of the i-th target user into the first feature vector , convert the corresponding preset government recommendation data into the second feature vector ; Calculate the first eigenvector With the second eigenvector The similarity between them is calculated as: ; In the formula, For situation matching, is the first eigenvector The rth situational feature of , R is the total number of situational features, is the second eigenvector The rth situational feature of .

3. The user type identification and interaction method based on context recognition according to claim 2 is characterized in that: The method for comparing and analyzing the context matching degree of the i-th target user includes: Comparing the situation matching degree with a preset situation matching degree threshold; If the context matching degree is greater than or equal to the preset context matching degree threshold, it is determined that the recommended service of the government affairs system matches the context of the target user, and a normal matching type is generated; If the context matching degree is less than the preset context matching degree threshold, it is determined that the recommended service of the government affairs system does not match the context of the target user, and an abnormal matching type is generated.

4. The user type identification and interaction method based on context recognition according to claim 3 is characterized in that: The method for matching the user behavior data corresponding to the nth user type with the mth government affairs target data includes: Compare the demand service coefficient of the nth user type with the mth government affairs matching coefficient; If the demand service coefficient is greater than the government affairs matching coefficient, it is determined that the mth government affairs target data does not match the user behavior data of the nth user type; If the demand service coefficient is less than or equal to the government affairs matching coefficient, the government affairs matching coefficient of the mth government affairs target data is compared with a set government affairs matching coefficient threshold; the government affairs matching coefficient threshold is set according to the demand service coefficient of the nth user type; If the government affairs matching coefficient is less than the government affairs matching coefficient threshold, it is determined that the mth government affairs target data does not match the user behavior data of the nth user type; If the government affairs matching coefficient is greater than or equal to the government affairs matching coefficient threshold, determining whether the government affairs matching coefficient is the maximum value among all remaining government affairs matching coefficients; If so, it is determined that the mth government target data matches the user behavior data of the nth user type; If not, it is determined that the mth government affairs target data does not match the user behavior data of the nth user type.

5. A user type identification and interaction system based on context recognition, used to implement the user type identification and interaction method based on context recognition according to any one of claims 1 to 4, characterized in that: include: A user type analysis module is used to obtain user feature data of a target user and determine the corresponding user type based on a pre-built identity recognition model; I is an integer greater than zero; A context matching module, which obtains context feature data and corresponding preset government affairs recommendation data of the i-th target user based on the user type, and obtains the context matching degree of the i-th target user based on the context feature data and the corresponding preset government affairs recommendation data; i∈I; A comparison module, used to compare and analyze the context matching degree of the i-th target user to determine the context matching type of the target user; The situation matching type includes a normal matching type and an abnormal matching type; A data acquisition module, which acquires user behavior data corresponding to the nth user type based on the abnormal matching type, and acquires the mth government affairs target data, where n and m are both integers greater than zero, and the initial value of n is 1; A matching module is used to match the user behavior data corresponding to the nth user type with the mth government target data. If there is no match, m=m+1 is set and the data acquisition module is jumped; If there is a match, the user behavior data corresponding to the nth user type matches the mth government target data as a set of government recommendation plans, and n=n+1 is set, and the data acquisition module is jumped; The scheme generation module is used to repeat the above data acquisition module to the matching module until n=I, end the loop, obtain H groups of government affairs recommendation schemes, interact according to the H groups of government affairs recommendation schemes, and perform government affairs service interactions for I target users, where H is an integer set greater than zero.