Turning Marketing Data into Conversion Insights
This solution demonstrates how AI Studio and Panopticon can be used to improve B2B lead qualification through predictive lead scoring, attribution modeling, engagement segmentation, and campaign effectiveness analysis.
Author: Pritish Shubham
Year: 2026
Platform: AI Studio 2025.1 | Visualization | Panopticon 2025.1
1. Introduction
In today’s digital marketing landscape, B2B technology companies generate leads through multiple channels such as webinars, product trials, digital campaigns, events, and website interactions. While these activities create a large volume of potential prospects, only a small fraction of them progress through the marketing funnel to become Sales Qualified Leads (SQLs). Identifying which leads are truly ready for sales engagement is, therefore a critical challenge for marketing and sales teams.
Many organizations rely on rule-based lead scoring systems, where leads receive points based on predefined attributes such as job title, company size, industry, or specific engagement activities. Although this approach is easy to implement, it often fails to capture the complex patterns of behavior that influence buying decisions in B2B environments. Modern customer journeys typically involve multiple touchpoints across different channels over extended periods of time, making it difficult for static scoring systems to accurately identify high-value prospects. As a result, high-potential leads may be overlooked while sales teams spend time pursuing prospects who are unlikely to convert.
This solution demonstrates how predictive marketing analytics can be used to improve lead qualification and optimize marketing performance. Using a structured analytics workflow, the solution applies machine learning models to predict the probability of lead conversion, analyzes multi-touch engagement pathways through attribution modeling, and evaluates campaign and channel effectiveness using data-driven insights. By combining predictive modeling, engagement analysis, and interactive visualization, this solution provides a comprehensive framework that helps marketing teams prioritize the most promising leads, understand which engagement strategies drive conversions, and improve the overall Marketing Qualified Lead (MQL) to Sales Qualified Lead (SQL) conversion process.
2. Environment
AI Studio
- AI Studio 2025.1
- Python Integration (Execute Python Operator)
Python Environment
- Python 3.13 with
- pandas 3.0.1
- NumPy 2.4.3
- pyarrow 18.0.0
- scikit-learn 1.8.0
- SciPy 1.17.1
- Markov-model-attribution 0.42
Additional Dependencies
- joblib 1.5.3
- openpyxl 3.1.5
- python-dateutil 2.9.0.post0
- packaging 26.0
- six 1.17.0
- threadpoolctl 3.6.0
- tzdata 2025.3
- setuptools 82.0.1
- wheel 0.46.3
- et_xmlfile 2.0.0
Visualization
Panopticon 2025.1
3. Data Description
In B2B marketing analytics, understanding lead behavior requires combining information about the organization, the individual contact, and their interactions with marketing activities. Marketing datasets typically include firmographic attributes, engagement signals, campaign information, and lifecycle progression indicators that together describe how leads move through the marketing funnel.
Key Feature Groups in the Dataset
The attributes in the dataset can be broadly grouped into the following categories:
Feature Group | Description | Example Attributes |
|---|
Lead Identification | Unique identifiers used to track each lead and maintain relationships between marketing and sales records. | Lead_ID, Contact_ID, Account_ID |
Firmographic Information | Company-level characteristics that describe the organization associated with the lead. These attributes help determine whether the lead fits the organization’s Ideal Customer Profile (ICP). | Industry, Company_Size, Annual_Revenue, Age_of_Company, Region |
Contact and Role Information | Attributes describing the individual associated with the lead, including their job role and decision-making authority. These features help determine whether the contact is likely to influence purchasing decisions. | Job_Title, Department, Seniority_Level, Buying_Role, Job_Title_Score |
Marketing Engagement Data | Behavioral indicators that capture how leads interact with marketing activities such as campaigns, webinars, and digital content. These attributes help measure the level of interest or intent demonstrated by a lead. | Webinar_Attendanc, Event_Participation, Email_Opens, Content_Downloads, Engagement_Score |
Campaign and Channel Information | Variables describing how the lead was acquired and through which marketing channels they interacted with the organization. These features are used to analyze channel performance and attribution. | Lead_Source, UTM_Source, UTM_Medium, Campaign_Name, Channel_Type |
Lifecycle Stage Indicators | Attributes that describe the stage of the lead within the marketing and sales funnel. These variables help track lead progression from initial contact to qualified opportunity. | Stage_Label, Lead_Status, MQL_Date, SQL_Date |
Engagement Timing and Recency | Time-based variables that capture when interactions occurred and how recently a lead engaged with marketing content. Recency signals are important predictors of conversion readiness. | Days_Since_Last_Activity, Days_in_Current_Stage, Recency_Index |
Target Variable | The outcome variable used in predictive modeling to indicate whether a lead ultimately converted into a sales-qualified opportunity. | Converted (Yes/No) |
Dataset Summary
Metric | Value | Description |
|---|
Total Leads | ~10,690 | Total number of marketing leads included in the dataset. Each row represents a unique lead generated through marketing activities. |
Total Attributes | ~280+ features | The dataset contains a large number of variables covering firmographic data, engagement signals, campaign information, and lifecycle indicators. |
Industry Categories | Multiple B2B sectors | Leads originate from various industries such as software, automotive, aerospace, electronics, and energy. |
Marketing Channels | Multiple acquisition channels | Leads are generated through channels such as email campaigns, webinars, digital advertisements, events, organic website visits, and referrals. |
Lifecycle Stages | Multi-stage marketing funnel | The dataset tracks how leads progress through the marketing pipeline from early engagement to qualified prospects. |
4. Additional Business and Data Understanding
Before building predictive models, it is important to develop a clear understanding of both the business context and the structure of the data. In B2B marketing environments, leads are generated through multiple campaigns and channels, and each lead may interact with several marketing touchpoints before becoming sales-ready. This makes the lead conversion process inherently multi-stage and multi-touch, requiring careful analysis of both engagement patterns and company characteristics.
From a business perspective, the primary objective is to identify high-potential leads that are most likely to convert from Marketing Qualified Leads (MQLs) to Sales Qualified Leads (SQLs). Achieving this requires understanding how different factors, such as firmographic alignment, contact roles, engagement behavior, and marketing channels, contribute to lead qualification.
From a data perspective, the dataset contains a wide variety of attributes that capture these dimensions. Some variables represent company and contact characteristics, while others describe marketing interactions, engagement frequency, and lifecycle progression. Prior to modeling, these variables must be carefully reviewed to understand their meaning, relevance, and potential influence on lead conversion.
This combined understanding of business objectives and data structure helps ensure that the analytical workflow focuses on the most relevant predictors and provides insights that are meaningful for marketing and sales decision-making.
5. Objectives and Success Criteria
The primary objective of this solution is to demonstrate how predictive marketing analytics can improve the identification and prioritization of high-value B2B leads. In many marketing organizations, rule-based scoring methods are used to qualify leads; however, these approaches often fail to capture complex engagement behavior and multi-touch marketing interactions.
This solution introduces a data-driven framework for predictive lead scoring and marketing analytics. Using marketing lead data, the project demonstrates how machine learning models can estimate the probability of lead conversion, analyze engagement patterns across marketing channels, and support better decision-making in the marketing funnel.
The solution can be considered successful if it provides an analytical workflow that:
- Predicts the likelihood of a lead converting to a Sales Qualified Lead (SQL)
- Helps identify high-priority leads for sales engagement
- Provides insights into marketing engagement patterns and campaign effectiveness
The goal of this solution is to demonstrate the analytical approach and workflow, rather than to deploy a production-ready predictive system. In a real business environment, the results should be validated and refined using actual CRM and marketing automation data.
6. Success Criteria
6.1 Development Setup
This solution was developed using AI Studio 2025.1 (formerly RapidMiner Studio) as the primary environment for building and executing end-to-end analytics workflows. The repository is self-contained, including all required datasets and processes to reproduce the results. Specifically, the repository includes:
- A prepared marketing lead dataset used for modeling and analysis
- Data preparation and feature engineering processes (e.g., recency scoring, ICP fit scoring)
- Machine learning workflows for predictive lead scoring and model comparison
- Attribution and engagement tracking processes (including Markov-based attribution)
- Campaign and channel effectiveness analysis workflows
All processes can be executed directly within AI Studio in a standalone development environment without requiring connectivity to external systems such as CRM platforms or marketing automation tools. This makes the solution suitable for experimentation, learning, and demonstration purposes.
Additionally, the appropriate AI Studio extensions (such as Python integration support) should be installed and configured to ensure seamless execution of hybrid workflows combining visual processes and Python-based logic.
6.2 Production Setup
In a production environment, this solution can be integrated with enterprise systems and connected to live data sources such as CRM or marketing automation platforms. This enables continuous lead scoring, real-time tracking of customer engagement, and monitoring of campaign performance.
The models can be deployed as reusable services (via AI Hub), allowing automated scoring of incoming leads and seamless integration with downstream systems like lead routing and campaign management, supporting data-driven decision-making for marketing and sales teams.
For visualization and business consumption, Panopticon 2025.1 is used to build interactive dashboards that present key insights in an intuitive format. These dashboards enable stakeholders to explore lead funnel performance, channel attribution, segmentation patterns, and campaign ROI through dynamic filtering and drill-down capabilities.
Together, the integration of AI Studio workflows with Panopticon dashboards creates a scalable analytics ecosystem that bridges advanced data science with practical business applications, supporting continuous optimization of marketing strategies.
7. Project Author Biography
Pritish Shubham is a Senior Learning Information Developer at Siemens (DISW) with a strong background in engineering and business analytics. He holds an M. Tech in Mechanical Engineering and an MBA in Business Analytics. His work focuses on applying data analytics, machine learning, and predictive modeling to solve real-world business problems, particularly in improving B2B lead conversion through data-driven marketing insights. At Siemens, he develops technical learning solutions and training programs that enable users to apply advanced analytics and simulation tools. Through this solution, he showcases how predictive analytics can identify high-value leads, analyze engagement patterns, and enhance marketing effectiveness in B2B organizations.
8. Data Preparation
8.1 Data Validation and Preparation
This process prepares the raw lead dataset by ensuring data quality, consistency, and proper structure for downstream analysis. As shown in Figure 1, the process includes data harmonization, cleaning, filtering, and label preparation steps. The data is first imported and harmonized by standardizing column names, data types, and attribute roles to align with the analytical framework. Missing values and inconsistencies are handled to improve data reliability, followed by the application of sanity checks and filtering rules to remove invalid records and outliers. The dataset is then validated and formatted to ensure compatibility with feature engineering and modeling steps, including proper role assignment for key attributes such as identifiers and labels. These steps are implemented within the Import & Harmonize, Data Cleaning, Filtering, and Label Preparation stages. The result is a clean and structured dataset that serves as a reliable input for feature engineering and predictive modeling.
Figure 1: Data Validation and Preparation Workflow in AI Studio
8.2 Exploratory Data Analysis
This process performs exploratory data analysis and feature profiling to understand the structure, distribution, and relationships within the lead dataset. As shown in Figure 2, multiple analytical branches are used to generate descriptive statistics, examine feature distributions, and evaluate relationships between key variables such as engagement, fit, and total scores. Correlation analysis is used to identify dependencies and potential multicollinearity among features, while stage-wise and segment-level aggregations provide insights into funnel progression and lead behavior across industries and personas.
The process also supports the identification of outliers and data patterns that inform feature engineering and model design. These steps are implemented through descriptive statistics, distribution analysis, correlation matrices, and grouped aggregations within the EDA workflow. The output provides a comprehensive understanding of feature importance, data quality, and behavioral trends, forming the analytical foundation for subsequent feature engineering and predictive modeling stages.
Figure 2 EDA and Feature Profiling Workflow
8.3 Feature Engineering
This process performs feature engineering to construct meaningful variables that capture lead behavior, engagement patterns, and firmographic fit for predictive modeling. Derived features are created by combining and transforming existing attributes to better represent conversion signals. A key component of this step is the calculation of the Recency Score, which quantifies how recently a lead has interacted with marketing activities.
The Recency Score is derived in two steps to capture how recently a lead has interacted with the system. As shown in Figure 3, first, a “Days Since Entered” variable is calculated using the difference between the lifecycle entry date and the current date. If the date is missing, a default value of -1 is assigned to indicate no available interaction history. This ensures consistent handling of incomplete records while preserving analytical integrity.
Figure 3: Recency Score Calculation Workflow
Next, a time-decay transformation is applied using an exponential decay function of the form exp(-λ × t), where t represents the number of days since the last interaction. In this implementation, a decay factor (λ) of 0.005 is used, which gradually reduces the influence of older interactions while maintaining sensitivity to recent activity. A smaller λ value ensures a smoother decay curve, preventing scores from dropping too sharply and allowing moderately recent interactions to still contribute meaningfully. Leads with missing recency values are assigned a score of zero to avoid unintended bias.
This approach ensures that recent engagements are prioritized while still retaining historical context, making the Recency Score a robust indicator of lead activity and conversion potential.
In parallel, the ICP Fit Score is constructed to represent how well a lead aligns with the Ideal Customer Profile. The ICP Fit Score is constructed as a composite measure that evaluates how closely a lead aligns with the Ideal Customer Profile based on multiple firmographic and contextual attributes. The process begins by standardizing key variables such as industry, company size, geography, domain, and persona-related fields through missing value handling and text normalization, where missing entries are replaced with default categories (e.g., “Unknown”) and text fields are converted into consistent formats using trimming and lowercase transformations.
Figure 4: Time Decay Function for Recency Scoring
Each attribute is then mapped to a point-based scoring scheme. As shown in Figure 5, multiple firmographic attributes are mapped into a weighted scoring framework to compute ICP fit. For example, industry categories are assigned different weights based on strategic relevance, where high-priority industries such as Automotive, Aerospace, Electronics, and Manufacturing receive higher scores, moderately aligned industries receive lower scores, and less relevant segments may receive minimal or negative contributions. Similar scoring logic is applied across company size, persona, geography, technology alignment, and email/domain signals to capture different dimensions of fit.
Figure 5: ICP Fit Score Calculation
The final ICP Fit Score is computed by aggregating these individual component scores using a bounded function of the form max(0, min(180, Σ component scores)), ensuring that the score remains within a controlled range while preventing extreme values from dominating the model. This normalization approach maintains consistency across leads and enables fair comparison.
This multi-dimensional scoring framework ensures that both strong positive signals and weaker or misaligned attributes are accounted for, resulting in a balanced and interpretable representation of lead quality from a firmographic perspective.
9. Modelling
9.1 Predictive Lead Scoring
This process builds and evaluates predictive models to estimate the probability of lead conversion. The prepared dataset containing engineered features is first loaded and split into training and testing subsets to enable reliable model evaluation. To address class imbalance between converted and non-converted leads, SMOTE up sampling is applied on the training data, ensuring that the models can learn meaningful patterns without being biased toward the majority class.
The training dataset is then distributed across multiple modeling branches, as shown in Figure 6, where multiple models are trained and evaluated in parallel to identify the best-performing algorithm. A Decision Tree model learns by recursively splitting the data based on feature thresholds, identifying simple decision rules that separate converting and non-converting leads. The Random Forest model extends this approach by building multiple decision trees on different data samples and aggregating their predictions, improving robustness and reducing overfitting. The Gradient Boosting model builds trees sequentially, where each new tree focuses on correcting the errors of the previous ones, enabling the model to capture complex nonlinear relationships. The Logistic Regression model provides a probabilistic baseline by modeling the relationship between input features and conversion likelihood using a linear combination of variables passed through a logistic function. The XGBoost model further enhances boosting by applying optimized gradient-based learning with regularization, allowing efficient handling of complex patterns and interactions in the data.
In parallel, the testing dataset is passed through the corresponding branches to evaluate each model consistently. The outputs from all models are then consolidated and compared using standard performance metrics, enabling the identification of the best-performing model based on predictive accuracy and generalization ability.
These steps are implemented within the data splitting, sampling, model training, and model comparison stages. The final output is a model comparison summary that highlights the most effective model, which is then selected for lead scoring in subsequent stages.
Figure 6: Predictive Lead Scoring Model Training Workflow
9.2 Touchpoint & Engagement Tracking
9.2.1 Attribution Tracking
This process performs multi-touch attribution analysis to understand how different marketing channels contribute to lead conversion across the customer journey. The process begins by combining the original lead dataset with predicted conversion scores and creating channel-level indicator variables to capture interactions across touchpoints. Recency and time-decay weights are applied to assign higher importance to recent interactions, ensuring that more recent engagements have a stronger influence on attribution outcomes.
To capture multi-touch effects, a Markov-based attribution approach is applied. As shown in Figure 7, customer journeys are transformed into sequential events and analyzed using a Markov-based attribution approach. Channel contributions are estimated using the removal effect, which measures the change in overall conversion probability when a specific channel is removed from the journey. This allows the model to quantify the true impact of each channel while accounting for interdependencies between touchpoints.
The dataset is then transformed into an event-level structure by reshaping and ordering channel interactions, enabling sequential analysis of the customer journey. Advanced attribution calculations are implemented using the Execute Python operator, where custom Python logic is used to compute transition probabilities, simulate channel removal, and derive contribution scores more efficiently than standard operators.
Figure 7: Multi-Touch Attribution Workflow using Markov Model
To support this step, the Python environment must be properly configured with Python 3.13 and required libraries, including pandas for data manipulation, NumPy for numerical computations, and pyarrow for efficient data handling and integration with RapidMiner. The Python extension must also be installed and correctly configured within the platform to enable seamless execution of custom scripts.
The attribution results are then enriched by merging with external or intermediate datasets and prepared for downstream analysis. These enriched outputs are further used for engagement-based segmentation, where leads are grouped into clusters based on behavioral patterns. These steps are implemented within the Attribution Modeling, Event-Level Transformation, and Segmentation stages. The final outputs provide a comprehensive view of channel contribution and customer behavior, enabling more effective marketing optimization and resource allocation.
9.2.2 Engagement Tracking
This process performs engagement-based segmentation to group leads into distinct behavioral segments based on their interaction patterns. The dataset containing engagement-related attributes is first loaded and prepared by selecting relevant features and normalizing them to ensure consistent input for clustering. This step ensures that all variables contribute proportionally and prevents bias due to scale differences.
A clustering algorithm is then applied to identify groups of leads with similar engagement characteristics. These clusters represent distinct behavioral segments, allowing differentiation between highly engaged, moderately engaged, and low-engagement leads. The clustering model is stored for reuse in downstream analysis and scoring processes, enabling consistent segmentation across the workflow.
Figure 8: Engagement-Based Clustering Workflow
The clustered dataset is further processed by splitting it into multiple branches to enable parallel analysis of cluster characteristics. Aggregation and reshaping operations are performed to analyze key metrics across clusters, allowing comparison of engagement patterns and identification of meaningful differences between segments. Cluster performance is also evaluated and converted into a structured format to support reporting and interpretation. These steps are implemented within the feature preparation, engagement clustering, and cluster analysis stages. The final output provides a structured view of lead segments based on engagement behavior, supporting targeted marketing strategies and improved personalization.
9.3 Campaign & Channel Effectiveness
This process evaluates the effectiveness of marketing campaigns and channels by transforming lead-level data into aggregated performance metrics. The Figure 9 illustrates the aggregation of lead and conversion data to evaluate campaign and channel effectiveness. The dataset is first loaded and standardized to ensure consistency in column names and structure, enabling reliable downstream analysis. Conversion indicators and supporting variables are then created to measure whether leads have successfully progressed through the funnel, forming the basis for performance evaluation.
Figure 9: Campaign and Channel Performance Analysis Workflow
The data is aggregated at both the channel and campaign levels to compute key metrics such as total leads and conversions. This aggregation enables a consolidated view of how different channels and campaigns contribute to overall marketing outcomes. To ensure consistency and comparability, channel and campaign names are standardized, and percentage-based metrics, including conversion rates, are calculated. These normalized metrics allow meaningful comparison across different marketing efforts, regardless of scale.
The process is structured to produce parallel outputs for channel-level and campaign-level analysis. Channel-level summaries provide insights into the overall effectiveness of each marketing channel, while campaign-level summaries offer more granular visibility into individual campaign performance. These steps are implemented within the conversion metric creation, aggregation, and metric preparation stages.
The final outputs include structured channel and campaign ROI summaries, which are exported for reporting, dashboarding, and data-driven decision-making. These insights enable marketers to identify high-performing channels and campaigns, optimize resource allocation, and improve overall marketing effectiveness.
10. Dashboards
The final stage of the solution translates the analytical outputs into interactive dashboards, enabling business users to explore insights and make informed decisions without engaging directly with the underlying data science workflows. These dashboards are designed to provide a comprehensive view of lead performance, marketing effectiveness, and revenue impact in a unified interface.
Figure 10: Lead Funnel and KPI Dashboard
This dashboard, shown in Figure 10, provides an overview of lead progression across funnel stages along with key performance indicators. The Lead Funnel visualization offers a clear representation of how leads progress through different lifecycle stages, helping identify bottlenecks and opportunities for improvement. High-level KPI indicators, such as total leads and predicted conversion rate, provide an immediate snapshot of overall marketing performance, allowing stakeholders to quickly assess the effectiveness of current strategies.
To better understand marketing impact, the Channel Influence dashboard highlights the relative contribution of each channel using attribution weights derived from the analytical model. This enables teams to identify which channels are driving conversions and which may require optimization. In parallel, the Recency Impact visualization demonstrates how recent interactions influence conversion likelihood, reinforcing the importance of timely engagement in the customer journey.
Figure 11: Engagement Segmentation Dashboard
The segmentation dashboard, Figure 11, further enhances decision-making by grouping leads into distinct behavioral clusters. These segments help differentiate high-value prospects from leads requiring re-engagement, enabling more targeted and personalized marketing actions. Interactive filters based on firmographic and engagement attributes allow users to dynamically explore patterns across different audience groups.
Figure 12: Campaign and Channel ROI Dashboard
The Campaign and Channel Effectiveness dashboards, shown in Figure 12, extend this analysis by providing detailed insights into ROI, cost per conversion, and revenue contribution. Visualizations such as bar charts, treemaps, and cost-versus-revenue plots enable users to evaluate campaign efficiency, compare performance across initiatives, and optimize budget allocation. This aligns with the broader objective of using data-driven insights to maximize marketing return and improve overall business outcomes.
All dashboards are fully interactive and interconnected, allowing users to drill down into specific segments, campaigns, or channels. This ensures that insights generated through predictive modeling, attribution analysis, and segmentation are effectively communicated and can be directly applied to real-world marketing decisions.
11. Next Steps
While the current solution demonstrates a comprehensive framework for lead scoring, attribution analysis, segmentation, and campaign effectiveness, several enhancements can further improve its accuracy, scalability, and business impact when deployed in a real-world environment.
A key next step is the integration of live CRM and marketing automation data sources. The current implementation relies on a structured dataset; however, connecting the solution to platforms such as HubSpot, Salesforce, or other enterprise systems would enable continuous data updates and real-time scoring. This would allow marketing and sales teams to act on insights as they evolve, rather than relying on static analysis.
From a modeling perspective, the predictive performance can be further improved by incorporating advanced feature engineering and model tuning techniques. This includes hyperparameter optimization, cross-validation strategies, and the inclusion of additional behavioral and intent-based signals such as website activity, content engagement depth, and campaign interaction sequences. Periodic model retraining should also be implemented to ensure the model adapts to changing market conditions and user behavior.
The attribution framework can be extended by exploring alternative multi-touch attribution models, such as Shapley value-based methods or data-driven attribution approaches, in addition to the current Markov-based model. This would provide a more robust understanding of channel contribution and allow organizations to compare attribution strategies for better decision-making.
Another important area of enhancement is the refinement of segmentation strategies. While clustering based on engagement provides meaningful behavioral groups, combining it with predictive scores, firmographic attributes, and lifecycle stages can lead to more actionable micro-segments. These segments can then be directly integrated into targeted marketing campaigns and personalization workflows.
On the visualization side, the dashboards can be extended to include real-time monitoring and alerting mechanisms, enabling proactive decision-making. For example, alerts can be triggered when conversion rates drop, campaign ROI declines, or specific segments show unusual behavior. Integration with business intelligence tools and enterprise reporting systems can further enhance accessibility for stakeholders.
Finally, the solution can be operationalized by deploying it within AI Hub (or similar platforms) as a set of automated workflows and web services. This would enable seamless integration with downstream applications such as lead routing systems, campaign management tools, and executive dashboards, ensuring that insights generated from the analytics pipeline directly drive business actions.
By implementing these next steps, the solution can evolve from a proof-of-concept analytical framework into a fully scalable, production-ready system that continuously supports data-driven marketing optimization.
Keywords
Predictive Marketing Analytics; Lead Scoring; B2B Marketing; Machine Learning; Classification; Feature Engineering; Markov Attribution; Time-Decay Modeling; Engagement Segmentation; Campaign Effectiveness; Python; AI Studio; Panopticon;