An integrated online and offline solution for ID mapping
Background
Almost all internet companies need to identify and track users. Accurate user identification enables the collection of personalized behavior and identity data, such as products browsed, videos watched, or restaurants visited. This data helps create precise, personalized experiences for search, advertising, and recommendations.
ID mapping technical route
1. Business research
This solution applies to various business scenarios. For example, Alibaba Group uses ID mapping in the following scenarios.
1) Cross-domain account linking: Link accounts across dozens of Alibaba Group apps to perform joint modeling or spatial exploration. This process identifies a single natural person and is the foundation for marketing and recommendations.
2) Same-person identification: This is used for marketing risk control and implementing risk control policies. For example, it can identify scalper accounts that abuse new user benefits on Alibaba Cloud or during platform-wide sales promotions.
3) Device-to-account conversion: In advertising, user growth comes from first-party and third-party traffic sources. Third-party sources involve placing ads on external media to drive traffic to your platform. First-party sources involve converting users within your own app, such as by sending push notifications or promoting transactions.
2. Data organization
Data organization is based on business scenarios and available business data. The first step is to identify the core data, which includes user IDs, device IDs, and the relationship data between them. The business team extracts and inventories this data from the current instrumentation. During this process, you may encounter issues such as incomplete data or weak relationships where no direct link exists. You must determine if multiple data relationships can be used for association and mining. A detailed review of data sources helps compile necessary information, such as table names, data descriptions, extraction principles, data volume, ID selection, and feature selection. This information serves as the basis for designing the data warehouse architecture.
After the data sources are organized, the origin and extraction methods for the data are clear. The next step is to design the data warehouse architecture, data flow, and initial model.
3. Data warehouse architecture
This step primarily involves the data ingestion and cleansing layers. Raw table information is ingested, and various rules are applied for cleansing. This includes extract, transform, and load (ETL) processes, such as ID relationship collection, feature collection, data extraction, and initial cleansing. This solution is built on Alibaba Cloud's big data platform products and the underlying MaxCompute big data platform.
GraphCompute Offline Architecture
Centered on the GraphCompute engine and graph algorithms, the offline architecture seamlessly integrates with the underlying MaxCompute data processing layer and provides an online service layer to handle business queries.

Technical implementation details
The technical solution consists of three parts.
The first part is data organization and graph algorithm execution. This part performs offline aggregation by mining subgraph information from the data. GraphCompute provides several classic graph algorithm features.
Community detection
Louvain: You can specify weights for devices with a high confidence level to reduce the probability of them being merged.
Weakly Connected Components: You can add weights to association edges. These weights can represent the activity level, confidence level, or recent logon time. This improves the accuracy of partitioning and helps distinguish between scenarios such as device changes and shared accounts.
Similarity calculation
When strong association information is unavailable, you can use weak association media to calculate the similarity between accounts. This helps assess the likelihood that they are used by the same natural person.
The second part is data output, which produces account information with strong associations. It also supports the real-time online mining of weak relationships and linking to existing IDs.
The third part involves building an online graph service based on user-device relationships. This service provides queries for offline graph algorithm results and supports the online mining of weak relationships.

Technical advantages of the solution
1. Online-offline integrated solution
This solution upgrades the traditional T+1 offline solution to provide 24-hour real-time ID mapping and association capabilities. For real-time decision-making scenarios, it provides an integrated pipeline for data generation, output, and queries.
We also provide expert guidance to help your business build and implement ID mapping capabilities from the ground up.
2. Middle-platform data service capabilities
This solution provides middle-platform data service capabilities built on the Alibaba Cloud big data platform.
First, it integrates with the MaxCompute data warehouse. Using an artificial intelligence for IT operations (AIOps) system, it combines offline computing with online real-time computing.
Second, it supports various business data queries. It supports vector, inverted index, and complex graph queries to provide greater business flexibility.
Finally, the integrated online and offline solution allows your business to choose the most suitable approach. This empowers various services, such as marketing recommendations (T+1) and real-time risk control (24-hour real-time).
3. Better graph algorithm experience
Compared to SparkX solutions, the Alibaba Cloud graph computing team offers a superior graph algorithm experience. For community detection and connected components, we provide effective solutions based on the expertise of the Alibaba DAMO Academy and our security team.
4. Weak relationship mining capability
We also provide solutions for data that lacks strong associations. For example, you can use multiple factors or rules for comprehensive evaluation and decision-making. You can also use quantization methods to handle complex real-world data scenarios. These methods include calculating similarity for attributes in non-deterministic conditions using vector calculation and geolocation calculation.
Application scenarios and business results
Build a holistic user profile based on ID mapping

After GraphCompute produces this high-quality user table, your business can improve its tagging capabilities.
1) Factual tags: These are established facts extracted from raw data. Examples include user-set gender, birth date, and location.
2) Statistical tags: These are tags defined by business metrics that show business behavior over a specific period. An example is the number of logon days in the last month.
3) Predictive tags: These are tags generated by algorithms. They define a user's preference for a business and have a corresponding prediction score. Examples include gender and age predicted from user behavior.
4) Marketing tags: Also called model tags, these are end-to-end analytical models. An example is purchasing power.
Use cases and implementation scenarios
1) Categorized marketing recommendations
You can conduct cross-screen marketing centered on segmented markets through multiple channels. This approach improves consumer satisfaction and helps identify key customers. In these market segments, users are categorized by age and purchasing power. Users with lower purchasing power receive discounts, while users with higher purchasing power are shown luxury goods, high-quality books, or other premium products.
2) Improved user coupon decisions for higher marketing returns
This method reduces the distribution of duplicate coupons to the same user. The resulting savings can be invested in other buyers to drive business goals. It also prevents sellers from creating multiple accounts and abusing subsidies using false details. In new user coupon scenarios, using OneID to calculate eligibility prevents duplicate benefit distribution. Initial calculations show that this can save 8% of the budget. A large portion of these savings comes from preventing users from registering multiple accounts on the same day.
3) Mining potential customers and securing conversions
You can combine holistic ID mapping user data with user behavior habits to perform relationship analysis.