Trajectory next point of interest prediction method and system

By constructing local behavior graphs and knowledge graph subgraphs, and combining selective state-space sequence encoding and dual-teacher distillation training, the problems of high computational complexity and insufficient utilization of historical information in trajectory next point of interest prediction are solved, achieving accurate trajectory next point of interest prediction and reducing deployment costs.

CN123138528APending Publication Date: 2026-11-20ANHUI UNIV OF SCI & TECH
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202611323956.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-28
Publication Date
2026-11-20

Smart Images

  • Figure CN123138528A_ABST
    Figure CN123138528A_ABST
Patent Text Reader

Abstract

The present application provides a trajectory next interest point prediction method, comprising: determining a candidate interest point set according to interest point metadata, and establishing a user identification word table; constructing a next interest point prediction sample, a historical check-in event sequence is constructed according to a fixed historical sequence length, and an effective position mask is used to make the filled position not participate in local behavior graph construction, knowledge graph subgraph anchor point generation, state updating and average pooling; for each next interest point prediction sample, a local behavior graph, a local behavior graph position mapping, a knowledge graph subgraph and a knowledge graph subgraph position mapping are constructed, and a pre-constructed prediction resource package is generated; candidate interest point prediction scores and student prediction probability distributions are generated; double-teacher distillation training is performed and a trained student prediction model is output; and the trained student prediction model is loaded to generate a prediction result. Through the cooperation of each step, the present application realizes more accurate acquisition of the trajectory next interest point and reduces the deployment cost.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of personalized recommendation technology, specifically to a method and system for predicting points of interest under a trajectory. Background Technology

[0002] With the development of mobile internet, location-based social networks, and location service technologies, users' check-in records at points of interest can reflect their travel patterns, activity preferences, and access intentions. Next point of interest prediction refers to predicting the points of interest that a target user is most likely to visit at the next predicted time based on the target user's historical check-in trajectory before the predicted time. It can be used in scenarios such as personalized location recommendations, route planning, business district services, and smart mobility.

[0003] Existing methods for predicting the next point of interest typically use recurrent neural networks, attention networks, or Transformer models to encode user check-in sequences and combine temporal, spatial, and interest point attributes to generate predicted probabilities for candidate interest points. Recurrent structures are prone to memory decay when the historical sequence is long, while self-attention structures require calculating pairwise associations between sequence positions, and the computational cost increases with the length of the historical sequence.

[0004] One existing technical solution, such as the patent document with publication number CN121327259A, proposes a next point of interest recommendation method based on a multimodal spatiotemporal feature aggregation network. This method constructs a unified multimodal knowledge graph based on user check-in sequences, social relationships, geographic locations of points of interest, as well as images, comments, and metadata. It then uses a pre-trained cross-modal model to map multimodal content to a shared semantic space, and subsequently outputs the probability of the next point of interest using a similarity matrix, graph convolutional networks, and recurrent sequence models. This type of solution concentrates different behavioral relationships, spatiotemporal relationships, and content attributes into the same global graph. It does not construct recent behavioral topology and external structured knowledge separately for each predicted sample, nor does it establish a positional correspondence between two types of graph nodes and historical check-in events.

[0005] Another existing technical solution, such as the patent document with publication number CN121144628A, proposes a method that integrates multi-instance knowledge distillation and cross-modal interest point recommendation. This method trains a student model using a visual-language teacher model with fixed parameters, constructs the distillation loss by using the distances between teacher and student image features and between teacher and student text features, and fuses the features from multiple modalities before the predictive encoder. While this approach can transfer image and text semantics, it does not provide expanded behavioral structural knowledge for the current next interest point prediction sample, nor does it adaptively adjust the weights of the two types of supervision based on the reliability of structural and semantic evidence in each sample.

[0006] Selective state-space models can dynamically adjust state update parameters based on the current input, recursively calculate according to sequence position, making the computational complexity of the sequence increase linearly with the number of historical check-in events, and selectively retain or forget historical information. However, using only sequence encoding is still insufficient to express behavioral transition relationships, spatial adjacency relationships, and semantic similarity relationships that do not directly appear in the current history window; if only a graph representation is stitched together at the prediction output, it is difficult to make graph structure information directly participate in the sequence state update.

[0007] Generative large language models can generate relatively complete semantic descriptions based on point-of-interest (POI) names, POI categories, spatial attributes, functional descriptions, and behavioral summaries, and summarize the functional concepts and access intentions of POIs. However, if only the generated text vectors are used as static additional features, there is a lack of clear entity relationships and propagation paths between semantic information and candidate POIs, and it is also difficult to extract relevant semantic knowledge based on the current prediction samples. Summary of the Invention

[0008] The technical problem to be solved by this invention is: how to obtain the next point of interest on a trajectory more accurately while reducing deployment costs.

[0009] This invention solves the above-mentioned technical problems through the following technical means: a method for predicting a point of interest in a trajectory, comprising the following steps: S1: Predetermine the candidate interest point set based on the interest point metadata, and build a user identifier vocabulary based on the user identifiers appearing in the predefined training set; construct a next interest point prediction sample containing historical check-in event sequences, event feature sequences, effective location masks, user identifiers, and real next interest point labels. The historical check-in event sequences are constructed according to a fixed historical sequence length, and the effective location masks are used to ensure that the fill-in positions do not participate in the construction of the local behavior graph, the generation of knowledge graph subgraph anchors, state updates, and average pooling. S2: For each next point of interest prediction sample, construct a local behavior graph, a local behavior graph location mapping, a knowledge graph subgraph, and a knowledge graph subgraph location mapping, and generate a pre-built prediction resource package; S3: Read the candidate interest point set pre-determined in step S1, and input the event feature sequence, effective location mask, and user identifier output in step S1, as well as the local behavior graph, local behavior graph location mapping, knowledge graph subgraph, and knowledge graph subgraph location mapping output in step S2, into the student prediction model; initialize and encode the two types of graph nodes in the local behavior graph and knowledge graph subgraph, perform position-by-position alignment according to the two types of location mapping, and use zero vector and zero-gating processing for the empty mapping; perform position-level gating fusion before selective state space sequence encoding, and output the candidate interest point prediction score and the student prediction probability distribution; S4: Perform dual-teacher distillation training and output the trained student prediction model; S5: Load the trained student prediction model to generate prediction results.

[0010] As a further optimized technical solution, step S1 specifically includes: The process involves acquiring original user check-in records, point-of-interest (POI) metadata, and predefined data partitioning, including predefined training, validation, and test sets. A candidate POI set is pre-determined based on the POI metadata, and a user identifier vocabulary is built based on user identifiers appearing in the predefined training set. Data cleaning and spatial grid number generation are performed. Historical check-in records are extracted and padded for each location to be predicted, forming a valid location mask. Derived historical check-in events are constructed based on the extracted historical check-in records, and feature encoding is performed on these events to form a historical check-in event sequence and an event feature sequence. The historical check-in event sequence, event feature sequence, valid location mask, user identifier, and actual next POI label together form the next POI prediction sample. The POI metadata, candidate POI set, and user identifier vocabulary are retained as foundational objects for subsequent steps and are not internal fields of the next POI prediction sample.

[0011] As a further optimized technical solution, historical check-in records are extracted for each location to be predicted, forming an effective location mask and derived historical check-in events, including: First select the location immediately adjacent to the location to be predicted. The most before The original user check-in record is used as the most recent context record; then, from the records preceding the most recent context record, the record with the most check-in records is selected in reverse chronological order. The earliest historical check-in record; after restoring the two parts to ascending chronological order, concatenate them according to the order of "earliest historical check-in record - most recent context record" to obtain a result with a length not exceeding [number missing]. The historical check-in record sequence, when the number of historical check-in records is less than When the time comes, add a padding record to the left of the sequence; the discrete fields of the padding record are identified by a dedicated PAD, all continuous fields are set to zero, the effective position mask is 0, and the effective position mask corresponding to the real historical check-in record is 1. For the current sample in a fixed-length historical check-in record sequence, the first... Each valid location will be recorded as a corresponding historical check-in record. Based on the check-in timestamp, spatial grid number, and its relationship with the previous valid historical check-in record, a derived historical check-in event is generated. The derived historical check-in events and event feature vectors are arranged according to the positions of the historical check-in record sequence of fixed length, forming a historical check-in event sequence. and event feature sequence .

[0012] As a further optimized technical solution, step S2 specifically includes: Predefined training set behavior statistics are generated using only a predefined training set; interest point semantic text set, interest point semantic representation cache, time bucket semantic representation cache and spatial grid semantic representation cache are generated offline using interest point metadata and the behavior statistics; candidate interest point semantic concept neighborhood mapping and candidate interest point access intent neighborhood mapping are generated offline from the global knowledge graph for the candidate interest point set; local behavior graph, local behavior graph location mapping, knowledge graph subgraph and knowledge graph subgraph location mapping are constructed for each next interest point prediction sample; The pre-built prediction resource package consists of a set of interest points, interest point metadata, predefined training set behavioral statistics, interest point semantic text set, interest point semantic representation cache, time bucket semantic representation cache, spatial grid semantic representation cache, semantic concept node representation cache, access intent node representation cache, candidate interest point semantic concept neighborhood mapping, candidate interest point access intent neighborhood mapping, and a global knowledge graph.

[0013] As a further optimized technical solution, step S2 specifically includes: constructing a local behavior graph, a local behavior graph location mapping, a knowledge graph subgraph, and a knowledge graph subgraph location mapping for each next point of interest prediction sample. For the current next point of interest prediction sample, determine the local behavior graph nodes. All different points of interest in the most recent context record are used as core nodes. The different points of interest in the remaining valid historical check-in events are sorted from the nearest to the prediction time in order of distance, and sorted from the highest to the lowest access frequency in the sample at the same time distance, and used as historical anchor nodes. Then, behavior transfer neighbors, spatial neighbors and semantic neighbors are added in sequence as associated point of interest nodes. Construct behavior transition relationships, spatial adjacency relationships, and semantic similarity relationships in a local behavior graph; The local behavior graph, the initial representation of the local behavior graph nodes, and the edge features are formed. The edge features contain continuous time, distance, behavior transition, and semantic similarity information. Generate a local behavior graph location mapping, and fix the mapping for filling in the location as an empty mapping; Transform semantic text of points of interest into facts in a knowledge graph; Construct a global knowledge graph and unify relation confidence. The global knowledge graph organizes metadata, semantic facts and predefined global relations of the training set for all candidate interest points. Extracting a subgraph from the knowledge graph, for the next interest point prediction sample, an anchor point set is constructed using the interest point nodes, category nodes, spatial grid nodes, and time bucket nodes corresponding to the valid positions in the historical check-in event sequence. Execution within the global knowledge graph does not exceed The relationship of jumping is extended; Generate initial representations of knowledge graph subgraph nodes, knowledge graph subgraph position mapping, and teacher semantic input.

[0014] As a further optimized technical solution, the selective state-space sequence encoding process in step S3 includes: Perform selective state-space sequence encoding, for the first... For each sequence position, state update parameters are dynamically generated based on the current enhanced event representation. When the effective position mask is 0, the previous effective state is maintained and the output is set to zero. The selective state space sequence encoding module, which uses a three-layer Mamba structure, performs selective state space sequence encoding. The main hidden dimension is fixed at 256, the state dimension is fixed at 112, the width of the local convolutional kernel is fixed at 5, and the calculation is performed recursively according to the order of historical check-in events.

[0015] As a further optimized technical solution, step S4 specifically includes: Using the next point of interest prediction samples, real next point of interest labels, candidate point of interest sets, and the local behavior graph, local behavior graph location mapping, knowledge graph subgraph, knowledge graph subgraph location mapping, and pre-built prediction resource package output from step S2, the graph expansion structure teacher probability distribution, the large language model semantic teacher probability distribution, and the student prediction probability distribution are obtained respectively. A fusion teacher probability distribution is formed based on the sample-level confidence of the two teachers. The student prediction model is updated using classification, ranking, distillation, and knowledge representation alignment losses. The trained student prediction model is output based on a predefined validation set.

[0016] As a further optimized technical solution, the graph expansion structure teacher provides structural supervision by expanding the local behavioral graph neighborhood and node upper bound, while the large language model semantic teacher provides semantic supervision by interest point semantic representation caching, candidate interest point semantic concept neighborhood mapping, and candidate interest point access intention neighborhood mapping; the weights of the two teachers are determined by the reliability of the structural and semantic evidence of the current sample.

[0017] As a further optimized technical solution, step S5 specifically includes: Obtain the original user check-in records of the user to be predicted before the prediction time, form unlabeled prediction input according to step S1, read the pre-built prediction resource package according to step S2 and construct the local behavior graph, local behavior graph position mapping, knowledge graph subgraph and knowledge graph subgraph position mapping, load the trained student prediction model output in step S4, calculate the prediction score of candidate interest points and perform business filtering and descending sorting, and output the prediction result composed of the next interest point or the top K candidate interest points. In the online prediction stage, the graph expansion structure teacher, the large language model semantic teacher or the generative large language model are not run.

[0018] The present invention also provides a trajectory-based next point of interest prediction system, comprising: The sample construction module is used to predetermine the candidate interest point set based on interest point metadata, and to build a user identifier vocabulary based on the user identifiers appearing in the predefined training set. It constructs a next interest point prediction sample containing historical check-in event sequences, event feature sequences, effective location masks, user identifiers, and real next interest point labels. The historical check-in event sequences are constructed according to a fixed historical sequence length, and the effective location masks are used to ensure that the padding positions do not participate in the local behavior graph construction, knowledge graph subgraph anchor point generation, state update, and average pooling. The graph structure construction module is used to construct a local behavior graph, a local behavior graph location mapping, a knowledge graph subgraph, and a knowledge graph subgraph location mapping for each next point of interest prediction sample, and to generate a pre-built prediction resource package; The joint encoding prediction module reads a pre-determined set of candidate interest points and inputs the event feature sequence, effective location mask, user identifier, local behavior graph, local behavior graph location mapping, knowledge graph subgraph, and knowledge graph subgraph location mapping into the student prediction model. It initializes and encodes the nodes of both the local behavior graph and the knowledge graph subgraph, performs position-by-position alignment based on the two types of location mappings, and uses zero vectors and zero gating for empty mappings. Position-level gating fusion is performed before selective state-space sequence encoding, outputting the candidate interest point prediction scores and the student prediction probability distribution. The distillation training module is used to perform dual-teacher distillation training and output the trained student prediction model; The prediction result generation module is used to load the trained student prediction model and generate prediction results.

[0019] The advantages of this invention are: By coordinating the various steps, we can obtain the next point of interest on the trajectory more accurately and reduce deployment costs. The specific advantages are as follows: 1. This invention constructs a historical check-in event sequence according to a fixed historical sequence length, and uses an effective position mask to prevent the padding position from participating in the construction of the local behavior graph, the generation of anchor points of the knowledge graph subgraph, the state update and the average pooling. Therefore, it can support the batch processing of next interest point prediction samples with different historical lengths and reduce the interference of the padding position on the prediction results.

[0020] 2. This invention constructs a local behavior graph for the current sample and a knowledge graph subgraph extracted from the global knowledge graph. The local behavior graph is used to describe the recent behavior topology at the sample level, and the knowledge graph subgraph is used to describe structured metadata, semantic concepts, access intentions and global relationships. Therefore, it can utilize recent behavior evidence and global structured knowledge simultaneously without mixing the functions of the two types of graphs.

[0021] 3. This invention adopts a processing chain of "generative large language model to generate semantic text of interest points - text parsing and entity normalization - knowledge graph fact generation - sample-level knowledge graph subgraph extraction", thus it can convert unstructured semantic descriptions into structured knowledge with entities, relations and relation confidence, and help to provide additional semantic associations for interest points with fewer behavior transfer records.

[0022] 4. This invention outputs local behavioral graph position mapping and knowledge graph subgraph position mapping respectively, and injects two types of graph node representations through two independent gating at each valid sequence position. Therefore, behavioral structure information and semantic knowledge can directly affect subsequent state updates, rather than being concatenated as a whole vector at the prediction output end.

[0023] 5. This invention employs a selective state-space sequence encoding module to recursively encode the enhanced event feature sequence, making the sequence computation complexity increase linearly with the number of historical check-in events, and dynamically generating state update parameters based on the current enhanced event representation. Therefore, it can reduce the computational overhead of long historical sequences and selectively retain historical information related to the prediction of the next point of interest.

[0024] 6. This invention sets up a graph expansion structural teacher and a large language model semantic teacher, and calculates sample-level teacher weights based on the predicted score interval, the number of effective edges in the expanded local behavioral graph, and the confidence of semantic relations in the knowledge graph. Therefore, it can enhance structural supervision when structural evidence is sufficient and enhance semantic supervision when semantic evidence is sufficient, reducing the problem of insufficient adaptation of fixed teacher weights to different samples.

[0025] 7. In the online prediction phase of this invention, only one trainable prediction model is run, namely the trained student prediction model. The candidate interest point set, interest point metadata, predefined training set behavioral statistics, global knowledge graph, various semantic representation caches, and two candidate interest point semantic neighborhood mappings are encapsulated as a pre-built prediction resource package for reading. Therefore, it can avoid running two teachers and a generative large language model online, reducing online deployment overhead. Attached Figure Description

[0026] Figure 1 This is a schematic diagram of the overall process of the trajectory-based point of interest prediction method according to an embodiment of the present invention.

[0027] Figure 2 This is a schematic diagram illustrating the construction process of local behavioral graphs and knowledge graph subgraphs in an embodiment of the present invention.

[0028] Figure 3 This is a schematic diagram of the student prediction model in an embodiment of the present invention.

[0029] Figure 4 This is a schematic diagram of the dual-teacher distillation training and single-model inference process in an embodiment of the present invention. Detailed Implementation

[0030] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below in conjunction with the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0031] In this specification, "original user check-in record" refers to a record directly read from a data file without any derived fields added; "historical check-in record" refers to an original user check-in record located before the position to be predicted and selected into the current input window; "derived historical check-in event" refers to an event object formed by adding hour number, week number, spatial grid number, time interval, spherical distance, and movement direction features to the historical check-in record; and "historical check-in event sequence" refers to a sequence of derived historical check-in events arranged according to the check-in timestamp.

[0032] "Event Feature Vector" is a vector obtained by embedding discrete features and projecting continuous features into a single derived historical check-in event; "Event Feature Sequence" is a series of event feature vectors arranged in the order of the historical check-in event sequence; "Next Point of Interest Prediction Sample" consists of the historical check-in event sequence, event feature sequence, effective location mask, user identifier, and real next point of interest label; "Unlabeled Prediction Input" constructed during online prediction does not contain real next point of interest label.

[0033] The "candidate interest point set" is a pre-determined set of interest points with valid interest point identifiers, interest point categories, and interest point latitude and longitude, based on the current city interest point metadata, and remains fixed during the training, validation, testing, and online prediction phases. The "local behavior graph" is a graph data structure constructed for a single next interest point prediction sample; the "local behavior graph encoding module" is a graph neural network module that takes the local behavior graph as input and outputs local behavior graph node representations and local behavior graph readout representations. The "global knowledge graph" is a pre-constructed structured knowledge set for the candidate interest point set; the "knowledge graph subgraph" is a sample-level graph structure extracted from the global knowledge graph around the anchor points of the current next interest point prediction sample.

[0034] The "Local Behavior Graph Location Mapping" records the local behavior graph node corresponding to each valid sequence position in the event feature sequence; the "Knowledge Graph Subgraph Location Mapping" records the knowledge graph subgraph interest point node corresponding to each valid sequence position. These are independent output objects, and the term "location mapping" without qualification is not used to replace any complete name throughout the text.

[0035] The "Generative Large Language Model" is used to generate semantic text for interest points offline before training. The "Large Language Model Semantic Teacher" is a frozen teacher module that uses interest point semantic representation caching, time-bucket semantic representation caching, spatial grid semantic representation caching, candidate interest point semantic concept neighborhood mapping, and candidate interest point access intention neighborhood mapping to form a teacher probability distribution. The "Candidate Interest Point Semantic Concept Neighborhood Mapping" and "Candidate Interest Point Access Intent Neighborhood Mapping" record the correspondence between candidate interest point identifiers and their associated sets of semantic concept nodes and access intention nodes in the global knowledge graph, respectively. The generative large language model does not participate in the iterative training and online prediction of the student prediction model.

[0036] The "predefined training set behavioral statistics" are calculated solely based on the predefined training set and include at least the consecutive access counts of points of interest (POIs), the probability of behavioral transitions, the average time interval between consecutive accesses, the access frequency of POIs, the distribution of typical check-in periods, and the distribution of common subsequent POI categories. Spatial neighbors are calculated based on the latitude and longitude of POIs, and semantic neighbors are calculated based on the semantic representation of POIs; neither of these is part of the predefined training set behavioral statistics. The "pre-built prediction resource package" includes a set of candidate POIs, POI metadata, predefined training set behavioral statistics, a set of POI semantic text, a cache of POI semantic representations, a cache of time-bucket semantic representations, a cache of spatial grid semantic representations, a cache of semantic concept node representations, a cache of access intent node representations, a candidate POI semantic concept neighborhood mapping, a candidate POI access intent neighborhood mapping, and a global knowledge graph.

[0037] The following notation conventions are used throughout the text: the user set is The set of points of interest is The set of interest point categories is The spatial grid set is ; Indicates the user index. Indicates the index of the location to be predicted. This represents the position index within a fixed-length sequence of historical check-in records. and Indicates point of interest identifiers. Indicates the graph coding layer index. Indicates the relation type. The same symbol represents only one meaning throughout the text. Specifically, T represents the time bucket set, and B represents the number of samples in the training mini-batch.

[0038] Example 1: Trajectory-based Next Point of Interest Prediction Method In this embodiment, steps S1 to S5 are executed sequentially.

[0039] See Figure 1 Step S1: Construct the next point of interest prediction sample and event feature sequence; Step S2: Construct the local behavior graph, local behavior graph position mapping, knowledge graph subgraph, and knowledge graph subgraph position mapping, and generate a pre-constructed prediction resource package; Step S3: Perform three-way encoding, position-by-position alignment, gating fusion, and selective state space sequence encoding; Step S4: Perform dual-teacher distillation training and output the trained student prediction model; Step S5: Load the trained student prediction model to generate prediction results.

[0040] Step S1: Construct the next point of interest prediction sample The process involves acquiring original user check-in records, point-of-interest (POI) metadata, and predefined data partitioning, including predefined training, validation, and test sets. A candidate POI set is pre-determined based on the POI metadata, and a user identifier vocabulary is built based on user identifiers appearing in the predefined training set. Data cleaning and spatial grid number generation are performed. Historical check-in records are extracted and padded for each location to be predicted, forming a valid location mask. Derived historical check-in events are constructed based on the extracted historical check-in records, and feature encoding is performed on these events to form a historical check-in event sequence and an event feature sequence. The historical check-in event sequence, event feature sequence, valid location mask, user identifier, and actual next POI label are combined to form the next POI prediction sample. The specific steps are as follows.

[0041] S11. Obtain original user check-in records, interest point metadata, and predefined data partitioning.

[0042] Each original user check-in record includes a user ID, point of interest (POI) ID, POI category, POI latitude, POI longitude, and check-in timestamp. POI metadata includes POI ID, POI name, POI category, POI latitude, POI longitude, function description, and business attributes. A candidate POI set is pre-determined based on POIs with complete fields in their metadata that are within the current city's service area. A user ID vocabulary is built based on user IDs appearing in a predefined training set, and unknown user IDs are set.

[0043]

[0044] In equation (1), For users The One original user check-in record, For user identification, For point of interest identification, For point of interest categories, and These are the latitude and longitude of the point of interest, respectively. This is the check-in timestamp. The hour number, weekday number, spatial grid number, time interval, and motion characteristics are all derived fields generated in subsequent steps based on the original fields mentioned above, and do not belong to the original user check-in record.

[0045] This implementation uses publicly available Foursquare New York and Foursquare Tokyo city check-in data. During the data processing phase, predefined training index sets, predefined validation index sets, and predefined test index sets are generated and versioned and saved separately. These three index sets do not overlap and are not regenerated after model training begins. The partition list simultaneously records the dataset version, preprocessing rule version, sample size for each set, and the corresponding file's checksum, ensuring that the experimental partitions are traceable and reproducible.

[0046] The predefined training set is used only for parameter learning of the student prediction model and the teacher's graph expansion structure, generation of predefined training set behavioral statistics, statistics required for local behavioral graph construction, and generation of semantic resources before training. The predefined validation set is used only for hyperparameter selection, early stopping, and optimal model weight selection. The predefined test set is used only for the final evaluation after all parameters are fixed. The real next point of interest labels in the predefined validation and predefined test sets do not participate in any behavioral statistics, semantic cue construction, or parameter learning.

[0047] S12. Perform data cleaning on the predefined training set, predefined validation set, and predefined test set respectively. Delete duplicate original user check-in records with the same user ID, point of interest ID, and check-in timestamp; filter invalid records with missing user ID, point of interest ID, point of interest category, point of interest latitude, point of interest longitude, or check-in timestamp; group by user ID and sort within each user set in ascending order of check-in timestamp.

[0048] S12 also generates spatial grid numbers based on the latitude and longitude of the points of interest. The minimum latitude and minimum longitude of the current city's set of points of interest are used as the local planar reference origin. Points of interest latitude and longitude in arc Convert to local planar coordinates and follow the fixed grid edge length. Generate spatial grid numbers.

[0049]

[0050] In equation (2), The average radius of the Earth and For points of interest Local plane coordinates, Spatial grid numbering. This invention employs... Meters are used in both New York and Tokyo city data using the same calculation rules; the reference origin is only used for numbering and does not participate in model training. This invention uniformly uses meters as the unit of distance, letting... =6371000 meters. Subsequent spatial grid side lengths, spherical distances, spatial scale parameters, and spatial adjacency distance thresholds are all expressed in meters.

[0051] S13, For users Predicted location Extract historical check-in records. First, select the location immediately adjacent to the position to be predicted. The most before The original user check-in record is used as the most recent context record; then, from the records preceding the most recent context record, the record with the most check-in records is selected in reverse chronological order. The earliest historical check-in record; after restoring the two parts to ascending chronological order, concatenate them according to the order of "earliest historical check-in record - most recent context record" to obtain a result with a length not exceeding [number missing]. The historical check-in record sequence.

[0052] When the number of historical check-in records is less than When a record is added to the left of the sequence, a padding record is added. The discrete fields of the padding record are identified using a dedicated PAD, all continuous fields are set to zero, and the effective position mask is 0. The effective position mask corresponding to the real historical check-in record is 1. The padding record does not participate in the generation of local behavior graph nodes, knowledge graph subgraph anchor points, selective state updates, or average pooling.

[0053] This invention sets , and If there are fewer than three recent context records, the existing records are retained, and the remaining positions are filled by padding on the left side of the sequence; this rule does not have the problem of earlier historical records overlapping with the most recent context records.

[0054] S14. Construct derived historical check-in events. For the current sample, in the fixed-length historical check-in record sequence, the first... Each valid location will be recorded as a corresponding historical check-in record. Based on the check-in timestamp, spatial grid number, and its relationship with the previous valid historical check-in record, a derived historical check-in event is generated.

[0055]

[0056] In equation (3), Numbered by hour. The week number, Assign spatial grid numbers, The time interval between the previous valid historical check-in record. The distance is spherical. This represents the direction angle of movement. Therefore, the original user check-in records and derived historical check-in events are clearly distinguished.

[0057] Divide the day into eight consecutive three-hour time intervals and use weekdays or weekends to mark extended time buckets.

[0058]

[0059] In equation (4), Number the time buckets. For indicator functions, This is a set of weekend weekday numbers. This results in 16 time buckets, whose numbers are used to identify time bucket nodes and active time periods in the global knowledge graph.

[0060] The spherical distance between points of interest corresponding to adjacent valid historical check-in records is calculated using the Haversine semi-versus method.

[0061]

[0062] In equation (5), It is the intermediate quantity of the semi-sine. and The first The latitude and longitude radians of each valid historical point of interest. The square root in equation (5) is used to obtain the correct spherical distance.

[0063] The direction of movement between adjacent valid historical points of interest is described by latitude and longitude difference direction angle.

[0064]

[0065] In equation (6), when two adjacent valid historical points of interest have the same latitude and longitude, the movement direction angle is set to 0; otherwise, the atan2 function is used directly according to equation (6) without adding any additional perturbation terms. The motion feature vector is defined as:

[0066] For the first valid event in the historical check-in event sequence, since there is no previous valid historical check-in record, , , and Set to 0 uniformly; this rule is distinguished from the padding record by the effective position mask.

[0067] S15. Form the next point of interest prediction sample. Input the point of interest identifier, point of interest category, hour number, day of the week number, and spatial grid number into the corresponding embedding map; input the time interval after logarithmic transformation into the time interval projection function, and input the motion feature vector into the motion feature projection function. The event feature vectors at each valid location are:

[0068] In equation (8), Embed a mapping for point of interest identifiers. Embed a mapping for point of interest categories. Embed a mapping for the hour number. Embed a mapping for the week number. Embed a mapping for spatial grid numbers. For time interval projection parameters, The motion feature projection matrix, This indicates vector concatenation. The event feature vectors at the padded positions are set to zero.

[0069] The derived historical check-in events and event feature vectors are arranged according to their positional order in a fixed-length historical check-in record sequence to form a historical check-in event sequence. and event feature sequence The complete next interest point prediction sample during the training phase is as follows:

[0070] In equation (9), For valid location mask, The actual next point of interest label. The unlabeled prediction input formed during the online prediction phase is... Step S1 outputs a complete next interest point prediction sample; the interest point metadata, candidate interest point set, and user identifier vocabulary obtained in S11 are retained as independent basic inputs for subsequent steps.

[0071] Step S2: Construct local behavior graphs and knowledge graph subgraphs Predefined training set behavioral statistics are generated using only a predefined training set. Interest point semantic text sets, interest point semantic representation caches, time bucket semantic representation caches, and spatial grid semantic representation caches are generated offline using interest point metadata and the behavioral statistics. Candidate interest point semantic concept neighborhood maps and candidate interest point access intent neighborhood maps are generated offline from the global knowledge graph for the candidate interest point set. For each next interest point prediction sample, a local behavior graph, a local behavior graph location map, a knowledge graph subgraph, and a knowledge graph subgraph location map are constructed. Step S2 outputs a pre-built prediction resource package and the aforementioned sample-level local behavior graph and knowledge graph subgraph dual-graph objects.

[0072] See Figure 2 Step S2 includes pre-training static resource construction and sample-level dual-graph construction. Pre-training static resources include a candidate interest point set, interest point metadata, predefined training set behavioral statistics, interest point semantic text set, interest point semantic representation cache, time bucket semantic representation cache, spatial grid semantic representation cache, semantic concept node representation cache, access intent node representation cache, candidate interest point semantic concept neighborhood mapping, candidate interest point access intent neighborhood mapping, and a global knowledge graph. Sample-level output includes a local behavior graph, local behavior graph location mapping, knowledge graph subgraph, and knowledge graph subgraph location mapping. These pre-training static resources together constitute a pre-built prediction resource package. Specifically, this includes the following steps.

[0073] S201. Generate predefined training set behavioral statistics. Only traverse the continuous original user check-in records in the predefined training set, and count the continuous access count of interest points, the average time interval between continuous accesses, the access frequency of interest points, the distribution of typical check-in time periods, and the distribution of common subsequent interest point categories. For the behavioral transition probability between candidate interest points, calculate according to Equation (10) and using a smoothing parameter; when there is no effective subsequent interest point p in the predefined training set, do not generate a behavioral transition relationship with p as the source node, and set the corresponding behavioral transition probability to 0.

[0074]

[0075] In equation (10), For a predefined training set, from points of interest Continuous access to points of interest Number of times, For points of interest The candidate successor set. The predefined validation set and predefined test set are not included in the statistics of equation (10). Among them, the candidate successor set only contains the interest points that actually appear as successors of p in the predefined training set; when its cardinality is 0, no successor processing is performed.

[0076] S202. Offline generation of semantic text sets of interest points and various semantic representation caches. For each candidate interest point in the candidate interest point set, the interest point name, interest point category, spatial grid function summary, typical check-in time period statistics, and anonymized behavior summary are filled into a fixed prompt template. The typical check-in time period statistics are obtained by selecting the access frequency of 16 time buckets in the predefined training set, and the two time buckets with the highest frequency are selected; the main functions of the spatial grid are the top three interest point categories with the highest access frequency in the grid; the access frequency is divided into three levels: low, medium, and high according to the third position of the number of interest point visits in the predefined training set; the common successor interest point categories are the top three categories with the highest transfer count; the average revisit interval is uniformly expressed in hours. The anonymized behavior summary does not contain user identifiers, precise original timestamps, or individual user trajectories.

[0077] This invention uses the following fixed prompt template: "Point of Interest Name: {Name}; Point of Interest Category: {Category}; Spatial Grid: {Grid Number}; Main Functions of Spatial Grid: {Category Statistics}; Typical Active Time Period: {Time Bucket Statistics}; Anonymous Behavior Summary: {Behavior Statistics}. Please output the main category, spatial grid function, typical active time period, main access intent, related semantic concepts, and confidence level of each field in sequence, without outputting other fields." This invention uses Qwen2.5-7B-Instruct as the generative large language model and performs offline inference locally. The inference parameters are fixed as do_sample=false, generation temperature 0, and a maximum of 256 new lexical units. Output fields are regenerated if they are missing, out of order, or parsing fails, with a maximum of two regenerations; outputs that still do not conform to the fixed prompt template after regeneration are discarded.

[0078] For each point of interest Obtain semantic text of interest points The semantic text set of interest points is defined as follows:

[0079] This invention employs BAAI / bge-m3 as a frozen text encoder, obtaining a 1024-dimensional text representation using its dense vector inference interface and performing L2 normalization. The semantic text of interest points, the standard text of 16 time buckets, the functional summaries of each spatial grid, the semantic concept names, and the access intent names are encoded separately to form interest point semantic representation caches, time bucket semantic representation caches, spatial grid semantic representation caches, semantic concept node representation caches, and access intent node representation caches. Both Qwen2.5-7B-Instruct and BAAI / bge-m3 are frozen before the student prediction model is trained and do not participate in the backpropagation of the student prediction model.

[0080] S203. Determine local behavior graph nodes for the current next point of interest prediction sample. All different points of interest in the most recent context records are used as core nodes; the different points of interest in the remaining valid historical check-in events are sorted from the nearest to the prediction time in order of distance, and sorted from the highest to the lowest access frequency in the sample at the same time distance, and are used as historical anchor nodes; then, behavior transfer neighbors, spatial neighbors and semantic neighbors are added in sequence as associated point of interest nodes.

[0081] After deduplication, a maximum of 80 nodes are retained in the local behavior graph, in the following order: core nodes, historical anchor nodes, behavior transition neighbors, spatial neighbors, and semantic neighbors. Expansion stops when 80 nodes are reached; if the sorting values ​​are identical, nodes are retained in ascending order of interest point identifiers. This ensures that a local behavior graph with a maximum of 80 nodes can still be deterministically constructed even when the historical sequence length is 153.

[0082] S204. Construct three types of relationships in the local behavior graph. Behavior transfer relationships are directed relationships; spatial adjacency relationships and semantic similarity relationships are represented by bidirectional relationship edges. When the same pair of interest points simultaneously satisfies multiple relationships, establish multiple parallel edges of different relationship types, and do not compress multiple relationships into a single relationship type.

[0083] For points of interest and Calculate the spherical distance according to formula (5) The spatial adjacency weight is:

[0084] In equation (12), For spatial scale parameters, This is the spatial adjacency distance threshold. This invention uniformly uses meters as the distance unit and employs... Mihe For each core node, four spatial neighbors are retained according to their spatial adjacency weights, from highest to lowest.

[0085] Normalized semantic vectors in the interest point semantic representation cache and Calculate semantic similarity:

[0086] For each core node, eight behavioral transition neighbors are retained in descending order of behavioral transition probability, and four semantic neighbors are retained in descending order of semantic similarity. No relation edges are generated if no corresponding neighbor exists.

[0087] S205. Forming a local behavioral graph, initial representation of local behavioral graph nodes, and edge features. A local behavioral graph is defined as:

[0088] Local Behavior Graph Nodes The initial representation consists of interest point identifier embedding, interest point category embedding, spatial grid embedding, interest point semantic representation, and node role embedding: In this invention, the event encoding module and the local behavior graph node initialization share interest point identifier embedding, interest point category embedding, and spatial grid embedding.

[0089]

[0090] In equation (15), node roles It is one of the core nodes, historical anchor nodes, or related interest point nodes. Local behavioral graph edge. The edge features are defined as follows:

[0091] In equation (16), For the predefined training set from Continuous access The average time interval. Statistical components that are irrelevant to the current relation type or do not exist are set to 0; a unique relation type is recorded separately for each edge. .

[0092] S206. Generate local behavior graph location mapping. For the first event in the event feature sequence... A valid location, if its point of interest identifier corresponds to a local behavior graph node. ,but ;otherwise The mapping for filling in the positions is always an empty mapping.

[0093] S207. Convert the semantic text of points of interest into knowledge graph facts. The text parsing module segments the semantic text of each point of interest according to fixed field identifiers, performs entity normalization on synonym categories, spatial grid functions, semantic concepts, and access intentions, merges duplicate facts, and filters facts with field confidence scores below 0.6. Each knowledge graph fact is represented as follows:

[0094] In equation (17), For the head entity, For relation types, For tail entities, Relationship confidence score. Relationship confidence score only indicates the reliability of facts in the knowledge graph.

[0095] S208. Construct a global knowledge graph and unify relation confidence. A global knowledge graph is defined as:

[0096] The global knowledge graph node types include interest point nodes, category nodes, spatial grid nodes, time bucket nodes, semantic concept nodes, and access intent nodes; the relationship types are unified as belonging to category, located in spatial grid, active in time period, satisfying access intent, associated with semantic concept, semantic similarity, and behavior transfer.

[0097] The confidence levels of all types of relationships are uniformly mapped to 0 to 1: 1 is used for category relationships and spatial grid relationships directly generated from interest point metadata; field confidence is used for semantic facts in generative large language models; behavior transfer relationships use the behavior transfer probability of equation (10); semantic similarity relationships use values ​​that are truncated after linearly mapping cosine similarity from negative 1 to 1 to 0 to 1; and relationships active in a given time period use the normalized access frequency of the corresponding time bucket. No corresponding relationship is generated when there is no valid evidence.

[0098] S209. Extract a subgraph from the knowledge graph. For the next interest point prediction sample, construct an anchor point set using the interest point nodes, category nodes, spatial grid nodes, and time bucket nodes corresponding to the valid positions in the historical check-in event sequence. Execution within the global knowledge graph does not exceed Relationship extension for jumps:

[0099] In equation (19), Krel is the maximum number of neighbors for each relation type. This invention sets Q=2. Each hop expansion starts from the current frontier node and simultaneously retrieves the outgoing and incoming edges of the allowed relations; duplicate edges of the same target node and the same relation are removed, and the neighbor quota for each relation is applied to each frontier node separately; the second hop only continues expansion from the nodes newly added in the first hop. Each frontier node retains a maximum of 1 category node, 1 spatial grid node, 2 time bucket nodes, 3 access intent nodes, 5 semantic concept nodes, 5 semantically similar neighbors, and 8 behavior transition neighbors; when the quota is exceeded, the retention order is determined by descending relation confidence and ascending node identifier.

[0100] The maximum number of nodes in the knowledge graph subgraph is set to 160, and the maximum number of edges is set to 640. When these limits are exceeded, nodes are retained in descending order of relation confidence. If relation confidence is the same, nodes are retained in ascending order of their identifiers. This truncation rule remains consistent throughout the training, validation, testing, and online prediction phases.

[0101] S210. Generate the initial representation of knowledge graph subgraph nodes, the knowledge graph subgraph position mapping, and the teacher's semantic input. Knowledge graph subgraph nodes. The initial representation is:

[0102] In equation (20), Embedded for node type, The normalized text representation of the node name obtained by the frozen text encoder; when When it is a node of interest, Embed the corresponding point of interest identifier; otherwise... It is a zero vector. Interest point nodes in the knowledge graph subgraph share the interest point identifier embedding with the event encoding module; other types of nodes do not use the interest point identifier embedding.

[0103] For the j-th valid position in the event feature sequence, if its interest point identifier corresponds to an interest point node v in the knowledge graph subgraph, then the knowledge graph subgraph position mapping is recorded as v; otherwise, it is recorded as an empty mapping. The candidate interest point semantic concept neighborhood mapping and the candidate interest point access intent neighborhood mapping are not temporarily read from the current sample knowledge graph subgraph, but are read and cached one by one from the global knowledge graph for the candidate interest point set before training; the former records the correspondence between candidate interest points and the set of associated semantic concept nodes, and the latter records the correspondence between candidate interest points and the set of nodes that satisfy the access intent.

[0104] Step S2 ultimately outputs the following objects: a local behavior graph, a local behavior graph location map, a knowledge graph subgraph, and a knowledge graph subgraph location map; it also outputs a pre-built prediction resource package consisting of a candidate interest point set, interest point metadata, predefined training set behavior statistics, an interest point semantic text set, an interest point semantic representation cache, a time bucket semantic representation cache, a spatial grid semantic representation cache, a semantic concept node representation cache, an access intent node representation cache, a candidate interest point semantic concept neighborhood map, a candidate interest point access intent neighborhood map, and a global knowledge graph. Subsequent steps all use the above full names.

[0105] Compared to schemes that unify access, temporal, spatial, and multimodal attributes into a single global graph, the local behavior graph in this step is limited to the current predicted sample, with edge features including continuous temporal, distance, behavior transfer, and semantic similarity information; the global knowledge graph organizes metadata, semantic facts, and predefined global relationships from the training set for all candidate interest points. Even if the two types of graphs contain homonymous relationships such as behavior transfer or semantic similarity, their construction scope, node types, edge attributes, and model functions still differ.

[0106] Step S3: Generate the student prediction probability distribution Read the candidate interest point set predetermined in step S1, and input the event feature sequence, effective location mask and user identifier output in step S1, as well as the local behavior graph, local behavior graph location mapping, knowledge graph subgraph and knowledge graph subgraph location mapping output in step S2 into the student prediction model; initialize and encode the two types of graph nodes, perform positional alignment according to the two types of location mappings in the local behavior graph and knowledge graph subgraph, and use zero vector and zero gating for the empty mapping; perform position-level gating fusion before selective state space sequence encoding, and output the candidate interest point prediction score and the student prediction probability distribution.

[0107] See Figure 3 The student prediction model includes an event encoding module, a local behavior graph encoding module, a knowledge graph subgraph encoding module, a position alignment and gating fusion module, a selective state space sequence encoding module, a fusion readout module, and a prediction output module.

[0108] S31. Read and fix the candidate point of interest set. The candidate point of interest set has been predetermined in step S11 based on the current city point of interest metadata, and is defined in the following form:

[0109] The candidate interest point set is fixed before training begins and is used jointly by the student prediction model, the graph expansion structure teacher, the large language model semantic teacher, negative sample sampling, and the Top-K output. The true next interest point label must belong to the candidate interest point set; records that do not belong to the candidate interest point set do not constitute training, validation, or test samples. Business rule filtering is only performed in step S54 and does not change the fixed dimensions of the prediction output module during the training phase.

[0110] S32. Perform event feature encoding. Apply linear projection, layer normalization, and GELU nonlinear transformation sequentially to the event feature vector output from step S1 to obtain an event representation with a unified main hidden dimension.

[0111] In equation (22), For layer normalization, and These are trainable parameters. The event representation corresponding to the position where the effective position mask is 0 is set to a zero vector.

[0112] S33, Encoding Local Behavior Graph. For relation types. neighboring nodes To the node The message being transmitted is defined as:

[0113] The side gating coefficient is:

[0114] The node is updated to:

[0115] In equation (25), To determine the normalization factor for relational neighbors, The activation function is nonlinear. The local behavior graph encoding module of this invention is configured with two layers, and performs masked average pooling on valid nodes to obtain the readout representation of the local behavior graph. The nonlinear activation function is fixedly GELU.

[0116] S34. Encoding knowledge graph subgraphs. Knowledge graph subgraph relation edges. The confidence level of the relationship is The node is updated as follows:

[0117] In equation (26), The knowledge graph subgraph encoding module of this invention employs the same GELU nonlinear activation function as the local behavioral graph encoding module. It is configured as a two-layer module, and performs masked average pooling on valid nodes to obtain the knowledge graph subgraph readout representation.

[0118] S35. Perform position-by-position alignment according to the two types of position mappings. For the first... The two types of graph node representations corresponding to the valid sequence positions are defined as follows:

[0119] When the local behavior graph location mapping or the knowledge graph subgraph location mapping is empty, the corresponding node represents a zero vector, and the corresponding gating coefficient is forcibly set to zero in the next step, thereby avoiding the injection of invalid information when there is no corresponding graph node.

[0120] S36. Perform position-level gating fusion. Calculate the gating coefficients for the local behavior graph and the knowledge graph subgraphs respectively:

[0121] In equation (28), when the corresponding position mapping is not empty... or Select 1 if the value is 1, otherwise select 0. Enhanced events are represented as:

[0122] In equation (29), This represents element-wise multiplication. Position-level gating fusion is performed before selective state space updates, allowing both types of graph knowledge to participate in the state update of every valid historical check-in event.

[0123] S37. Perform selective state-space sequence coding for the first... For each sequence position, state update parameters are dynamically generated based on the current enhanced event representation. The state update and output are as follows:

[0124] In equation (30), For selective state vectors, , and Dynamically generated from the current enhanced event representation. These are direct mapping parameters. When the valid position mask is 0, the previous valid state is retained and the output is set to zero. The symbol ψ only represents the selective state vector and is no longer used to represent the spatial grid number.

[0125] This invention employs a three-layer Mamba-structured selective state-space sequence encoding module, with a fixed main hidden dimension of 256, a fixed state dimension of 112, and a fixed local convolutional kernel width of 5. This module performs recursive calculations according to the order of historical check-in events, and its computational complexity increases linearly with the number of valid historical check-in events.

[0126] S38. Perform fusion readout. Extract the output representation of the last valid sequence position. And perform masked average pooling on all valid positions to obtain The two are then integrated with the local behavior graph readout representation, the knowledge graph subgraph readout representation, and the user identifier embedding:

[0127] In equation (31), and These are the readout representations of local behavioral graphs and knowledge graph subgraphs, respectively. User identifier embedding mappings are used. Graph readout representations are supplementary to the overall sample data and are not the only channel for the two types of graph knowledge to enter the sequence model. User identifier embedding mappings include dedicated unknown user identifiers; these unknown user identifier embeddings are used when verifying, testing, or predicting users that do not appear in the predefined training set user identifier vocabulary.

[0128] S39. Calculate the predicted scores of candidate interest points and the student prediction probability distribution. For candidate interest points... ,calculate:

[0129] In equation (32), Predict scores for candidate points of interest. Predict the probability for each student. Step S3 outputs the predicted score vector for all candidate interest points and the predicted probability distribution for each student. .

[0130] Compared to the approach of obtaining interest point representations through a unified similarity matrix and graph convolution, and then concatenating them with cyclic sequence representations at the prediction end, step S3 performs alignment at the historical check-in event level through two types of independent position mappings, and injects two types of graph node representations before selective state space sequence encoding, so that behavioral topology and structured semantics directly affect the selective retention and forgetting of states.

[0131] Step S4: Train the student prediction model Using the next point of interest prediction samples, real next point of interest labels, candidate point of interest sets, and the local behavior graph, local behavior graph location mapping, knowledge graph subgraph, knowledge graph subgraph location mapping, and pre-built prediction resource package output from step S2, the graph expansion structure teacher probability distribution, the large language model semantic teacher probability distribution, and the student prediction probability distribution are obtained respectively. A fusion teacher probability distribution is formed based on the sample-level confidence of the two teachers. The student prediction model is updated using classification, ranking, distillation, and knowledge representation alignment losses. The trained student prediction model is output based on a predefined validation set.

[0132] See Figure 4 Step S4 includes complete training input preparation, graph expansion structure teacher training, large language model semantic teacher construction, sample-level teacher probability fusion, negative sample sampling, joint loss calculation, and model selection.

[0133] S401. Prepare complete training input. Each training sample uses the next interest point prediction sample, the true next interest point label, a fixed set of candidate interest points, and the local behavior graph, local behavior graph location mapping, knowledge graph subgraph, knowledge graph subgraph location mapping, and pre-built prediction resource package output from step S2. The pre-built prediction resource package provides the large language model semantic teacher with at least the following: interest point semantic representation cache, time bucket semantic representation cache, spatial grid semantic representation cache, semantic concept node representation cache, access intent node representation cache, candidate interest point semantic concept neighborhood mapping, and candidate interest point access intent neighborhood mapping.

[0134] S402, Training Graph Expanded Structure Teacher. The graph expanded structure teacher and student prediction models use the same event encoding, two-class graph encoding, position alignment and gating fusion, selective state-space sequence encoding, fusion readout and prediction output structure; the difference lies in the expansion of the local behavior graph neighborhood and node upper bound when constructing the local behavior graph.

[0135] The graph expansion structure teacher of this invention retains 16 behavioral transition neighbors, 8 spatial neighbors, and 8 semantic neighbors for each core node, and the maximum number of nodes in the expanded local behavioral graph of a single sample is fixed at 160. First, the graph expansion structure teacher is independently trained using a predefined training set and real next interest point labels. Then, the optimal weights are selected based on the predefined validation set NDCG@5, and all parameters of the graph expansion structure teacher are frozen.

[0136] S403. Constructing the semantic teacher for the large language model. The semantic teacher for the large language model does not call the generative large language model during training iterations. Instead, it reads the following from the pre-built prediction resource package: interest point semantic representation cache, time bucket semantic representation cache, spatial grid semantic representation cache, semantic concept node representation cache, access intent node representation cache, candidate interest point semantic concept neighborhood mapping, and candidate interest point access intent neighborhood mapping. All of these representations are generated offline from the frozen BAAI / bge-m3 and L2 normalized.

[0137] Suppose the most recent context contains There are 1 valid interest points, whose semantic representation is as follows: The current time bucket semantics are as follows: The current spatial grid semantic representation is as follows The contextual semantics are represented as follows:

[0138] In equation (33), The time decay coefficient, for Normalization. The spatial grid semantic representation is obtained by encoding the main interest point categories and functional summaries of the grid; the time bucket semantic representation is obtained by encoding the standard text of the corresponding weekday or weekend time interval. This invention sets the time decay coefficient ξ=0.5. The current time bucket and the current spatial grid both refer to the time bucket and spatial grid corresponding to the last valid historical check-in event in the historical check-in event sequence, without using the location or time information of the actual next interest point.

[0139] The semantic teacher representation of a candidate interest point p consists of the semantic representation of the interest point, the average representation of the set of semantic concept nodes corresponding to the candidate interest point's semantic concept neighborhood mapping at p, and the average representation of the set of access intention nodes corresponding to the candidate interest point's access intention neighborhood mapping at p.

[0140] In equation (34), and These represent the values ​​of the semantic concept neighborhood mapping and the access intention neighborhood mapping of the candidate interest point at the candidate interest point p, respectively; when the neighborhood is empty, the corresponding average term is a zero vector. The semantic teacher score and the probability distribution of the semantic teacher in the large language model are as follows:

[0141] In equation (35), This is the fraction scaling factor. The distillation temperature is used. The semantic teacher of the large language model, the frozen text encoder, and the entire interest point semantic representation cache do not participate in the backpropagation of the student prediction model. This invention sets the score scaling factor ζ=1 and the distillation temperature... =2.

[0142] S404. Calculate the sample-level confidence scores of the two teachers. Let the highest and second highest candidate interest point prediction scores of the teachers in the graph expansion structure be respectively... and The number of effective edges in the expanded local behavioral graph is Its confidence level is:

[0143] In equation (36), N0 is a normalization constant for the number of effective edges in the extended local behavior graph. In this invention, N0 is set to 640.

[0144] Let the semantic scores of the highest and second highest candidate interest points of the semantic teacher in the large language model be respectively... and The average confidence of effective edges related to semantic concepts and access intentions in the knowledge graph subgraph is: Its confidence level is:

[0145] When no valid semantic edge exists, Setting it to 0 reduces the semantic teacher weight in the large language model.

[0146] S405. Calculate the sample-level teacher weights. Use teacher weight temperature... Confidence levels for the two teachers were normalized:

[0147] S406. Formation of a probability distribution of integrated teachers:

[0148] In equation (39), To expand the structural teacher probability distribution, For the semantic teacher probability distribution of the large language model, To integrate the probability distribution of teachers.

[0149] S407. Perform negative sample sampling. For each training sample, sample 20 negative samples that are different from the real next interest point from the candidate interest point set, including 5 behavioral transfer neighbors, 5 spatially nearby interest points, 5 semantically similar interest points, and 5 random interest points; if a source is insufficient, supplement with random candidate interest points, remove duplicate negative samples and use a fixed random seed.

[0150] S408. Calculate the training losses for the student prediction model. The classification loss is:

[0151] In equation (40), B is the number of samples in the current training mini-batch; i is the sample index within the mini-batch; Let be the true next interest point label for the i-th training sample; The model predicts the true next point of interest label for the i-th training sample for the student. The predicted probability given for the corresponding candidate interest point.

[0152] For the sample negative sample set The negative sample ranking loss is:

[0153] In equation (41), N i For the sample i The negative sample set, μ As the negative sample sorting interval, this invention sets μ =1.

[0154] The Kullback-Leibler divergence distillation loss between the teacher probability distribution and the student predicted probability distribution is:

[0155] In equation (42), For use of distillation temperature The student temperature probability distribution is obtained by normalizing the student's predicted score.

[0156] set up To integrate teachers with the highest probability A set of candidate points of interest From The pairwise sorting distillation loss for the constructed ordered set of candidate interest points is:

[0157] In equation (43), Mtop is the number of candidate interest points with the highest probability selected from the fusion teacher probability distribution. In this invention, Mtop is set to 10. The ordered candidate interest point pairs are constructed according to the fusion teacher probability from high to low, μd is the pairwise sorting distillation interval, and in this invention μd=0.1, sgn is the sign function.

[0158] Knowledge representation alignment loss is used to make the interest point identifier representation in the student prediction model closer to the corresponding interest point node representation in the knowledge graph in the common projection space:

[0159] In equation (44), is the set of interest points appearing in the current batch. The knowledge graph interest point node representation in Equation (44) is taken from the average value of the corresponding interest point node representation in the final encoding layer of each knowledge graph subgraph in the current mini-batch; only interest points that have both student interest point identifier representation and knowledge graph interest point node representation in the current mini-batch are included in PB.

[0160] The total loss of the student prediction model is:

[0161] This invention sets the weights of each loss to a fixed value. , , , and Backpropagation only updates the parameters of the student prediction model; the graph expansion structure teacher, the large language model semantic teacher, the frozen text encoder, and the interest point semantic representation cache are all kept frozen.

[0162] S409, Execution Optimization. The AdamW optimizer is used, with a learning rate of... The weight decays to The maximum number of training epochs is 20, the gradient clipping threshold is 1.0, the random seed is 42, and mixed precision training is used.

[0163] S410. Model Selection. After each training epoch, NDCG@5 and Acc@1 are calculated on a predefined validation set, with NDCG@5 as the primary metric. If NDCG@5 is the same, Acc@1 is used as the secondary metric. If the primary metric does not improve after four consecutive training epochs, the training is stopped early, and the student prediction model with the best validation set metric is saved. The predefined test set is evaluated only once after all parameters are fixed.

[0164] The improvement in step S4 is that the graph expansion structure teacher provides structural supervision by expanding the local behavior graph neighborhood and node upper bound, and the large language model semantic teacher provides semantic supervision by interest point semantic representation caching, candidate interest point semantic concept neighborhood mapping, and candidate interest point access intention neighborhood mapping; the weights of the two teachers are determined by the reliability of the structural and semantic evidence of the current sample, rather than using fixed global weights.

[0165] Step S5: Generate the prediction result for the next point of interest. Obtain the original user check-in records of the user to be predicted before the prediction time. Following step S1, form the unlabeled prediction input. Following step S2, read the pre-built prediction resource package and construct a local behavior graph, local behavior graph location mapping, knowledge graph subgraph, and knowledge graph subgraph location mapping. Load the trained student prediction model output from step S4, calculate the prediction scores of candidate interest points, perform business filtering and descending sorting, and output the prediction result consisting of the next interest point or the top K candidate interest points. During the online prediction phase, do not run graph expansion structure teachers, large language model semantic teachers, or generative large language models.

[0166] S51. Obtain the original user check-in records of the user to be predicted before the prediction time. Perform data cleaning, spatial grid number generation, historical check-in record extraction, derived historical check-in event construction, and event feature encoding according to steps S11 to S15 to form an unlabeled prediction input. When the user to be predicted does not appear in the predefined training set user identifier vocabulary but has at least one valid historical check-in record, use a dedicated unknown user identifier embedding and continue to use its historical check-in events to construct the unlabeled prediction input; when there are no valid historical check-in records after data cleaning, do not call the student prediction model, but instead output a non-personalized candidate list generated based on the access frequency of interest points in the predefined training set and filtered by business rules.

[0167] S52. Generate a local behavior graph, a local behavior graph location mapping, a knowledge graph subgraph, and a knowledge graph subgraph location mapping according to the sample-level construction rules in step S2, and read the pre-built prediction resource package. The pre-built prediction resource package is generated only based on interest point metadata and a predefined training set, and does not use check-in records after the prediction time.

[0168] S53. Load the trained student prediction model output from step S4, and perform a forward computation as in step S3 to obtain the prediction scores of all candidate interest points in the candidate interest point set. During the online prediction phase, the graph expansion structure teacher is not loaded, the generative large language model is not called online, and the large language model semantic teacher is not run.

[0169] S54. Filter out candidate points of interest that are closed, unreachable, or not within the service scope according to business rules, and sort the remaining candidate points of interest in descending order of their predicted scores.

[0170]

[0171] In equation (46), The set of candidate points of interest retained after filtering by the business; when Output the next point of interest with the highest probability when The output is sorted in descending order of predicted scores. 10 candidate points of interest.

[0172] S55. Output the prediction results to personalized location recommendation, route planning, business district services, or smart travel applications. The online server runs the trained student prediction model and reads the pre-built prediction resource package; the resource package is a pre-generated static data resource, not an online running teacher model.

[0173] The deployment improvement in step S5 is that the graph expansion structure teacher, the large language model semantic teacher, and the generative large language model used in the training phase do not participate in online prediction. Only one trainable prediction model is run in the online phase, namely the trained student prediction model.

[0174] Example 2: Trajectory-based Next Point of Interest Prediction System The trajectory-based next point of interest prediction system of the present invention includes a sample construction module, a graph structure construction module, a joint encoding prediction module, a distillation training module, and a prediction result generation module.

[0175] The sample construction module is used to predetermine the candidate interest point set based on interest point metadata, and to build a user identifier vocabulary based on the user identifiers appearing in the predefined training set. It constructs a next interest point prediction sample containing historical check-in event sequences, event feature sequences, effective location masks, user identifiers, and real next interest point labels. The historical check-in event sequences are constructed according to a fixed historical sequence length, and the effective location masks are used to ensure that the padding positions do not participate in the local behavior graph construction, knowledge graph subgraph anchor point generation, state update, and average pooling. The graph structure construction module is used to construct a local behavior graph, a local behavior graph location mapping, a knowledge graph subgraph, and a knowledge graph subgraph location mapping for each next point of interest prediction sample, and to generate a pre-built prediction resource package; The joint encoding prediction module reads a pre-determined set of candidate interest points and inputs the event feature sequence, effective location mask, user identifier, local behavior graph, local behavior graph location mapping, knowledge graph subgraph, and knowledge graph subgraph location mapping into the student prediction model. It initializes and encodes the nodes of both the local behavior graph and the knowledge graph subgraph, performs position-by-position alignment based on the two types of location mappings, and uses zero vectors and zero gating for empty mappings. Position-level gating fusion is performed before selective state-space sequence encoding, outputting the candidate interest point prediction scores and the student prediction probability distribution. The distillation training module is used to perform dual-teacher distillation training and output the trained student prediction model; The prediction result generation module is used to load the trained student prediction model and generate prediction results.

[0176] The trajectory-based point of interest prediction system of this invention is deployed on a server and implemented by a computer program executed by the server processor. The sample construction module, graph structure construction module, joint encoding prediction module, distillation training module, and prediction result generation module run in the same server environment, and the data processing process in each module is the same as in Embodiment 1.

[0177] Parameter settings and feasibility verification This invention uses publicly available Foursquare New York and Foursquare Tokyo city check-in data. Each city uses a predefined set of training indices, a predefined set of validation indices, and a predefined set of test indices, all generated during the data processing phase. A checklist records the data version, preprocessing rule version, sample size for each set, and file validation values. Both cities use the same data fields, sample construction rules, spatial grid generation rules, local behavior graph relationship types, knowledge graph node and relationship types, student prediction model structure, dual-teacher configuration, loss function, and evaluation protocol. No model may reselect parameters based on the results of the predefined test set.

[0178] The model parameters of this invention are fixed as follows: main hidden dimension 256, selective state space state dimension 112, selective state space sequence encoding module layer 3, local convolution kernel width 5, local behavior graph encoding module layer 2, knowledge graph subgraph encoding module layer 2, knowledge graph subgraph hidden dimension 128, training batch size 128, and validation batch size 512.

[0179] After fixing all parameters, Acc@1, Acc@5, and NDCG@5 were used as evaluation metrics, and a final evaluation was performed on a predefined test set. The New York and Tokyo city data used the exact same data cleaning rules, spatial grid generation rules, next point of interest prediction sample construction rules, candidate point of interest set construction rules, local behavior graph and knowledge graph subgraph construction rules, student prediction model structure, dual-teacher configuration, training hyperparameters, model selection criteria, and evaluation protocol. No model structure or experimental parameters were adjusted separately for either city. Experimental results show that Acc@1, Acc@5, and NDCG@5 for the New York city data were 14.4502%, 25.5541%, and 20.3259%, respectively, while those for the Tokyo city data were 13.3841%, 25.0438%, and 19.5741%, respectively. These results demonstrate that the method of this invention can complete trajectory next point of interest prediction for different city data under the same processing flow, model structure, and experimental configuration.

[0180] This invention employs a fixed ablation validation protocol to verify the effectiveness of each technical component. While maintaining data partitioning, training rounds, candidate interest point sets, and evaluation metrics, the following methods are evaluated sequentially: event sequence only, event sequence concatenation with graph-level representation prediction, dual graphs without position-by-position gating, graph-expanded structure teacher only, large language model semantic teacher only, and the complete method. This specification only records the actual experimental results obtained and does not use speculative values.

[0181] Compared with the scheme of combining graph convolution and cyclic aggregation in a unified multimodal knowledge graph, this implementation achieves a clear division of labor between sample-level dynamic behavioral topology and global structured knowledge through the independent construction, independent encoding and two types of position mapping of local behavioral graphs and knowledge graph subgraphs, and injects two types of graph knowledge before selective state space updates.

[0182] Compared to a scheme that uses a single fixed visual-language teacher and performs distillation based on image feature distance and text feature distance, this implementation uses two teachers with different knowledge sources: a graph-expanded structure teacher and a large language model semantic teacher. A fusion teacher probability distribution is formed based on the reliability of sample-level evidence, and only the trained student prediction model is run during the online prediction phase.

[0183] This invention is implemented according to the aforementioned data processing rules, model structure, graph construction parameters, teacher configuration, training parameters, and prediction process. The distinction between original user check-in records and derived historical check-in events, independent construction of dual graphs, two types of position mapping, gating injection before state update, dual-teacher sample-level confidence fusion, and online inference of the single-student prediction model together constitute the complete technical solution of this invention.

[0184] The above embodiments are only used to illustrate the technical solutions of the present invention, and are not intended to limit it. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for predicting a point of interest under a trajectory, characterized in that: Includes the following steps: S1: Predetermine the candidate interest point set based on the interest point metadata, and build a user identifier vocabulary based on the user identifiers appearing in the predefined training set; construct a next interest point prediction sample containing historical check-in event sequences, event feature sequences, effective location masks, user identifiers, and real next interest point labels. The historical check-in event sequences are constructed according to a fixed historical sequence length, and the effective location masks are used to ensure that the fill-in positions do not participate in the construction of the local behavior graph, the generation of knowledge graph subgraph anchors, state updates, and average pooling. S2: For each next point of interest prediction sample, construct a local behavior graph, a local behavior graph location mapping, a knowledge graph subgraph, and a knowledge graph subgraph location mapping, and generate a pre-built prediction resource package; S3: Read the candidate interest point set pre-determined in step S1, and input the event feature sequence, effective location mask, and user identifier output in step S1, as well as the local behavior graph, local behavior graph location mapping, knowledge graph subgraph, and knowledge graph subgraph location mapping output in step S2, into the student prediction model; initialize and encode the two types of graph nodes in the local behavior graph and knowledge graph subgraph, perform position-by-position alignment according to the two types of location mapping, and use zero vector and zero-gating processing for the empty mapping; perform position-level gating fusion before selective state space sequence encoding, and output the candidate interest point prediction score and the student prediction probability distribution; S4: Perform dual-teacher distillation training and output the trained student prediction model; S5: Load the trained student prediction model to generate prediction results.

2. The trajectory-next-point-of-interest prediction method as described in claim 1, characterized in that: Step S1 specifically includes: The process involves acquiring original user check-in records, point-of-interest (POI) metadata, and predefined data partitioning, including predefined training, validation, and test sets. A candidate POI set is pre-determined based on the POI metadata, and a user identifier vocabulary is built based on user identifiers appearing in the predefined training set. Data cleaning and spatial grid number generation are performed. Historical check-in records are extracted and padded for each location to be predicted, forming a valid location mask. Derived historical check-in events are constructed based on the extracted historical check-in records, and feature encoding is performed on these events to form a historical check-in event sequence and an event feature sequence. The historical check-in event sequence, event feature sequence, valid location mask, user identifier, and actual next POI label together form the next POI prediction sample. The POI metadata, candidate POI set, and user identifier vocabulary are retained as foundational objects for subsequent steps and are not internal fields of the next POI prediction sample.

3. The trajectory next point of interest prediction method as described in claim 2, characterized in that: For each location to be predicted, extract historical check-in records to form a valid location mask and derived historical check-in events, including: First select the location immediately adjacent to the location to be predicted. The most before The original user check-in record is used as the most recent context record; then, from the records preceding the most recent context record, the record with the most check-in records is selected in reverse chronological order. The earliest historical check-in record; after restoring the two parts to ascending chronological order, concatenate them according to the order of "earliest historical check-in record - most recent context record" to obtain a result with a length not exceeding [number missing]. The historical check-in record sequence, when the number of historical check-in records is less than When the time comes, add a padding record to the left of the sequence; the discrete fields of the padding record are identified by a dedicated PAD, all continuous fields are set to zero, the effective position mask is 0, and the effective position mask corresponding to the real historical check-in record is 1. For the current sample in a fixed-length historical check-in record sequence, the first... Each valid location will be recorded as a corresponding historical check-in record. Based on the check-in timestamp, spatial grid number, and its relationship with the previous valid historical check-in record, a derived historical check-in event is generated. The derived historical check-in events and event feature vectors are arranged according to the positions of the historical check-in record sequence of fixed length, forming a historical check-in event sequence. and event feature sequence .

4. The trajectory next point of interest prediction method as described in claim 1, characterized in that: Step S2 specifically includes: Predefined training set behavior statistics are generated using only a predefined training set; interest point semantic text set, interest point semantic representation cache, time bucket semantic representation cache and spatial grid semantic representation cache are generated offline using interest point metadata and the behavior statistics; candidate interest point semantic concept neighborhood mapping and candidate interest point access intent neighborhood mapping are generated offline from the global knowledge graph for the candidate interest point set; local behavior graph, local behavior graph location mapping, knowledge graph subgraph and knowledge graph subgraph location mapping are constructed for each next interest point prediction sample; The pre-built prediction resource package consists of a set of interest points, interest point metadata, predefined training set behavioral statistics, interest point semantic text set, interest point semantic representation cache, time bucket semantic representation cache, spatial grid semantic representation cache, semantic concept node representation cache, access intent node representation cache, candidate interest point semantic concept neighborhood mapping, candidate interest point access intent neighborhood mapping, and a global knowledge graph.

5. The trajectory-next-point-of-interest prediction method as described in claim 4, characterized in that: Step S2 specifically includes: constructing a local behavior graph, a local behavior graph location mapping, a knowledge graph subgraph, and a knowledge graph subgraph location mapping for each next point of interest prediction sample. For the current next point of interest prediction sample, determine the local behavior graph nodes. All different points of interest in the most recent context record are used as core nodes. The different points of interest in the remaining valid historical check-in events are sorted from the nearest to the prediction time in order of distance, and sorted from the highest to the lowest access frequency in the sample at the same time distance, and used as historical anchor nodes. Then, behavior transfer neighbors, spatial neighbors and semantic neighbors are added in sequence as associated point of interest nodes. Construct behavior transition relationships, spatial adjacency relationships, and semantic similarity relationships in a local behavior graph; The local behavior graph, the initial representation of the nodes in the local behavior graph, and the edge features are formed. The edge features contain continuous time, distance, behavior transition, and semantic similarity information. Generate a local behavior graph location mapping, and fix the mapping for filling in the location as an empty mapping; Transform semantic text of points of interest into facts in a knowledge graph; Construct a global knowledge graph and unify relation confidence. The global knowledge graph organizes metadata, semantic facts and predefined global relations of the training set for all candidate interest points. Extracting a subgraph from the knowledge graph, for the next interest point prediction sample, an anchor point set is constructed using the interest point nodes, category nodes, spatial grid nodes, and time bucket nodes corresponding to the valid positions in the historical check-in event sequence. Execution within the global knowledge graph does not exceed The relationship of jumping is extended; Generate initial representations of knowledge graph subgraph nodes, knowledge graph subgraph position mapping, and teacher semantic input.

6. The trajectory next point of interest prediction method as described in claim 1, characterized in that: In step S3, the selective state-space sequence encoding process includes: Perform selective state-space sequence encoding, for the first... For each sequence position, state update parameters are dynamically generated based on the current enhanced event representation. When the effective position mask is 0, the previous effective state is maintained and the output is set to zero. The selective state space sequence encoding module, which uses a three-layer Mamba structure, performs selective state space sequence encoding. The main hidden dimension is fixed at 256, the state dimension is fixed at 112, the width of the local convolutional kernel is fixed at 5, and the calculation is performed recursively according to the order of historical check-in events.

7. The trajectory next point of interest prediction method as described in claim 1, characterized in that: Step S4 specifically includes: Using the next point of interest prediction samples, real next point of interest labels, candidate point of interest sets, and the local behavior graph, local behavior graph location mapping, knowledge graph subgraph, knowledge graph subgraph location mapping, and pre-built prediction resource package output from step S2, the graph expansion structure teacher probability distribution, the large language model semantic teacher probability distribution, and the student prediction probability distribution are obtained respectively. A fusion teacher probability distribution is formed based on the sample-level confidence of the two teachers. The student prediction model is updated using classification, ranking, distillation, and knowledge representation alignment losses. The trained student prediction model is output based on a predefined validation set.

8. The trajectory next point of interest prediction method as described in claim 7, characterized in that: The graph expansion structural teacher provides structural supervision by expanding the local behavioral graph neighborhood and node upper bound, while the large language model semantic teacher provides semantic supervision by caching the semantic representation of interest points, mapping the semantic concept neighborhood of candidate interest points, and mapping the access intention neighborhood of candidate interest points. The weights of the two teachers are determined by the reliability of the structural and semantic evidence of the current sample.

9. The trajectory next point of interest prediction method as described in claim 1, characterized in that: Step S5 specifically includes: Obtain the original user check-in records of the user to be predicted before the prediction time, form unlabeled prediction input according to step S1, read the pre-built prediction resource package according to step S2 and construct the local behavior graph, local behavior graph position mapping, knowledge graph subgraph and knowledge graph subgraph position mapping, load the trained student prediction model output in step S4, calculate the prediction score of candidate interest points and perform business filtering and descending sorting, and output the prediction result composed of the next interest point or the top K candidate interest points. In the online prediction stage, the graph expansion structure teacher, the large language model semantic teacher or the generative large language model are not run.

10. A trajectory-based point of interest prediction system, characterized in that: include: The sample construction module is used to predetermine the candidate interest point set based on the interest point metadata and to build a user identifier vocabulary based on the user identifiers appearing in the predefined training set. Construct a next point of interest prediction sample that includes historical check-in event sequences, event feature sequences, effective location masks, user identifiers, and real next point of interest labels. The historical check-in event sequences are constructed according to a fixed historical sequence length, and the effective location masks are used to ensure that the fill-in positions do not participate in the construction of local behavior graphs, generation of knowledge graph subgraph anchors, state updates, and average pooling. The graph structure construction module is used to construct a local behavior graph, a local behavior graph location mapping, a knowledge graph subgraph, and a knowledge graph subgraph location mapping for each next point of interest prediction sample, and to generate a pre-built prediction resource package; The joint encoding prediction module reads a pre-determined set of candidate interest points and inputs the event feature sequence, effective location mask, user identifier, local behavior graph, local behavior graph location mapping, knowledge graph subgraph, and knowledge graph subgraph location mapping into the student prediction model. It initializes and encodes the nodes of both the local behavior graph and the knowledge graph subgraph, performs position-by-position alignment based on the two types of location mappings, and uses zero vectors and zero gating for empty mappings. Position-level gating fusion is performed before selective state-space sequence encoding, outputting the candidate interest point prediction scores and the student prediction probability distribution. The distillation training module is used to perform dual-teacher distillation training and output the trained student prediction model; The prediction result generation module is used to load the trained student prediction model and generate prediction results.

Citation Information

Patent Citations

  • Multi-instance knowledge distillation and cross-modal interest point recommendation method and system

    CN121144628A

  • Method and device for recommending next interest point based on multi-modal spatial-temporal feature aggregation network

    CN121327259A