Back to exam

CPMAI Cheatsheet

Cognitive Project Management for AI

Download free PDF

Phase I: Business understanding

The data-centric lifecycle

  • **CPMAI** organizes AI work into six phases: I Business understanding; II Data understanding; III Data preparation; IV Model development; V Model evaluation; VI Model operationalization.
  • **Iteration** revisits earlier phases when evidence changes. Resolve data gaps, unsuitable objectives or unacceptable risk before advancing; a phase sequence is not a one-way handoff.
  • **Trustworthy AI** applies throughout the lifecycle. Define privacy, safety, fairness, transparency, explainability and accountability requirements during business understanding and test them repeatedly.

AI fit and go/no-go decisions

  • **Start with the problem:** identify stakeholders, pain points, intended decisions and measurable outcomes before selecting a pattern, algorithm or vendor.
  • **Deterministic automation** follows explicit rules. **Probabilistic AI** learns patterns under uncertainty. Separate cognitive tasks from routine software, workflow and integration tasks; use simpler alternatives where they meet the need.
  • **Go/no-go** considers business value, data access and suitability, technology, skills, cost, operational feasibility and acceptable risk. Pause, narrow scope or choose another approach when essential conditions fail.
  • **Small, valuable iterations** reduce uncertainty. A proof of concept tests a technical assumption; a pilot tests a bounded solution in realistic use. Neither alone proves readiness for a broad rollout.

The seven patterns of AI

  • **Hyperpersonalization** adapts a profile, recommendation or experience to an individual. **Conversational** systems interact through language, such as chatbots and voice assistants.
  • **Recognition** identifies meaning in images, audio, text or other inputs. **Patterns and anomalies** discovers similarities, groups and unusual behavior, such as suspicious transactions.
  • **Predictive analytics and decision support** estimates future outcomes or informs decisions using historical evidence. **Goal-driven systems** search or optimize actions toward an objective, such as routing or bidding.
  • **Autonomous systems** act with limited human intervention within defined boundaries. A solution may combine patterns; plan each pattern's data, evaluation and iterations while managing shared interfaces.

Business value and success criteria

  • **Business KPIs** measure outcomes such as downtime, retention, investigation time, wait time or cost savings. **Model metrics** measure predictive behavior. Agree how technical performance supports the business result.
  • **Success thresholds** need a baseline, target, measurement period, data source and accountable owner. Use historical performance and stakeholder agreement; high accuracy alone does not establish value.
  • **ROI = (financial benefits - total costs) / total costs x 100%.** Include data acquisition, preparation, infrastructure, integration, training, monitoring and ongoing support. Spending and percentage complete alone cannot establish ROI.
  • **Cost-benefit analysis** compares AI with credible alternatives. Use cost-effectiveness for outcomes that are difficult to monetize and discounted cash flows when timing matters. Treat estimated benefits as assumptions to validate.

People, planning and adoption

  • **Data engineers** build reliable ingestion and preparation pipelines. **Data scientists** design experiments and models. **Domain/data SMEs** explain meaning, quality and real operating conditions; technical skill alone does not replace domain knowledge.
  • **Resource planning** maps phases to roles, compute capacity, vendors and dependencies. Use a WBS to decompose work, a kanban board to visualize flow, and resource leveling to address overload; plan contingencies for external dependencies.
  • **Adaptive planning** accommodates data uncertainty and changing requirements. Build data literacy, fill skills gaps with targeted training or expertise, and communicate limitations in business language.
  • **Adoption** requires end-user involvement, workflow fit, training, leadership support and feedback. Augmented intelligence supports human work. Attended RPA assists a user; unattended RPA runs routine tasks without active user participation.
  • **Digital transformation** combines process, people and data change. Assess usability and trust as well as technology; an almost-human robot can provoke discomfort known as the **uncanny valley**.

Phase II: Data understanding

Discover and validate sources

  • **Data inventory** records what exists across the organization: owners, locations, formats, access conditions and relevance. Confirm access before depending on a source; more data is not automatically better.
  • **Data catalog** makes datasets and metadata discoverable. **Lineage** traces origins and transformations. A data flow diagram shows movement between systems; these artifacts support traceability and source validation.
  • **Data requirements** follow the objective and AI pattern: needed features and labels, target population, quantity, quality, history, resolution and freshness. Include intended users, devices and environments in usage scenarios.
  • **Source validation** checks origin, permission, credibility, definitions and collection conditions with SMEs. Quarantine unverified data until verified or replaced. Assess internal, external and purchased sources against the same criteria.

Assess quality, coverage and scale

  • **Profiling and exploratory data analysis (EDA)** reveal distributions, missingness, duplicates, outliers, imbalance and relationships. Assess completeness, accuracy, consistency, validity, uniqueness and timeliness before preparing data.
  • **Representativeness** means coverage of the intended population and conditions, including languages, demographics, sites and rare events. Large datasets can still omit important cases or reproduce historical bias.
  • **Big data Vs:** volume is amount; velocity is arrival speed; variety is differing types and structures; veracity concerns reliability; value concerns usefulness. Plan capacity and skills around the actual workload.
  • **Data sufficiency** depends on complexity, diversity, label quality and risk. High-dimensional data can become sparse; use relevant features, dimensionality reduction or targeted collection. There is no universal examples-per-feature rule.

Data stewardship, privacy and security

  • **Data governance** defines owners, access, allowed use, quality responsibilities, retention, sharing and accountability. Ethics guidelines need enforceable processes and controls to prevent misuse.
  • **Privacy by design** minimizes personal data and limits purpose and retention. Assess sensitive information and privacy impacts before collection or aggregation; involve legal and compliance experts for applicable jurisdictions and planned uses.
  • **Security controls** include least privilege, role-based access, strong authentication, encryption in transit and at rest, secure APIs and access logging. Protect model artifacts and metadata as well as training data.
  • **Anonymization** aims to prevent identification; **pseudonymization** replaces identifiers but can remain linkable. Assess reidentification risk and preserve useful signal; removing names alone does not guarantee anonymity.

Phase III: Data preparation

Clean and validate the data

  • **Preparation pipelines** select, clean, transform and shape data for the model. Reuse validated components where suitable, adapting schemas, features and processing to each project's needs.
  • **Validation rules** check types, ranges, units, required fields, referential integrity and business constraints. Reconcile conflicting records, correct verified errors and deduplicate without erasing legitimate repeated events.
  • **Missing data** needs an explicit strategy: investigate its cause, then impute, flag or remove records as justified. Blanket zeros, repeated records and automatic deletion can distort the sample.
  • **Outliers and noise** may be errors or valuable signals such as fraud. Review with SMEs before removal. Validate transformations using representative samples and automated checks so meaning and labels remain intact.

Integrate, align and transform

  • **Schema mapping** aligns fields and meanings across sources. Standardize formats, units, identifiers and encodings; test mappings after source schema changes before retraining.
  • **ETL** transforms before loading; **ELT** loads before transforming. Batch pipelines process bounded collections; streaming pipelines process arriving events. Choose by freshness, throughput and integration requirements.
  • **Sensor alignment** accounts for timestamps, time zones, sampling rates and late arrivals. Resampling, aggregation or interpolation can align series, but must not invent certainty or use future information.
  • **Feature engineering** converts raw inputs into useful predictors. Scaling, categorical encoding and text processing must match the algorithm. A data lake stores varied data; a warehouse organizes curated analytical data.

Labels, augmentation and data gaps

  • **Supervised learning** needs reliable target labels. Use clear annotation guidelines, trained internal or external labelers, expert review and agreement checks; confirm rights to use already labeled data.
  • **Augmentation** makes valid variations of existing examples, such as appropriate image crops or rotations. **Synthetic data** creates new examples. Verify realism, labels, diversity and bias; neither repairs all missing real-world coverage.
  • **Data gaps** may require targeted collection, trusted external sources, a pretrained model or a smaller scope. Assess relevance, licensing, quality and cost before adopting an alternative.

Sampling, splits and leakage

  • **Training** fits model parameters; **validation** guides selection and tuning; **test** estimates final generalization after choices are fixed. Keep the test set independent of development.
  • **Random splits** suit independent observations. **Stratified splits** preserve class proportions; **group splits** separate related people or devices; **time splits** preserve forecasting order.
  • **Leakage** occurs when unavailable future information or evaluation data influences training. Fit imputers and scalers on training data; keep duplicates and augmented relatives in the same partition.
  • **Class imbalance** can hide rare failures behind high accuracy. Consider representative sampling, class weights or training-only resampling, then evaluate on realistic prevalence. Feature selection and dimensionality reduction reduce complexity in different ways.

Phase IV: Model development

Match the learning approach

  • **Machine learning** improves task performance from experience. **Supervised learning** learns from labeled examples: classification predicts categories; regression predicts numeric values.
  • **Unsupervised learning** explores unlabeled structure, such as customer clusters. A cluster is a similarity group, not a verified business category or causal explanation.
  • **Reinforcement learning** learns actions from reward feedback through interaction. Define the goal, constraints and safe exploration; simulation can support optimization before real-world use.
  • **Transfer learning** adapts knowledge from a pretrained model to a new task. Assess domain fit, licensing, resource needs and performance; using a pretrained model does not eliminate data preparation or evaluation.

Algorithm and compute trade-offs

  • **Start with a baseline** and compare candidates against accuracy, interpretability, latency, data size, training cost and team capability. No algorithm is best for every project.
  • **Naive Bayes** is a simple probabilistic text-classification baseline. **K-nearest neighbors** predicts from nearby examples and is sensitive to feature scaling and distance choices.
  • **Decision trees** split on features and can be interpretable. **Random forests and ensembles** combine models to improve predictive performance, often with higher cost or reduced simplicity.
  • **K-means** groups points around centroids and needs a chosen cluster count. Scaling, distance assumptions and unusual cluster shapes affect usefulness. **Gaussian mixtures** model probabilistic group membership.
  • **Support vector machines** learn separating boundaries; kernels can model nonlinear patterns. **Neural networks** learn complex representations but can require substantial data, compute and tuning; GPUs accelerate suitable parallel operations.

Training, tuning and reproducibility

  • **Parameters** are learned during training; **hyperparameters** control the learning process or model structure. Validation data and cross-validation help compare settings without repeatedly consulting the final test set.
  • **Overfitting** learns training-specific noise and generalizes poorly. **Underfitting** misses important structure. Review train/validation performance; consider regularization, early stopping, appropriate complexity and better data.
  • **AutoML** can automate candidate algorithms, feature processing, tuning and evaluation workflows. People still define objectives, verify data and leakage controls, assess risk and approve the resulting model.
  • **Reproducibility** requires versioned code, data references, preprocessing, feature definitions, learned weights, hyperparameters, dependencies and evaluation results. Separate data engineering, model development, evaluation and operational environments as needed.

Generative AI and prompt refinement

  • **Generative AI** creates content; an **LLM** can summarize, translate, classify text, assist search or generate code. Treat outputs as candidates requiring evaluation for the use case.
  • **Prompt engineering** states the task, relevant context, constraints, examples and required output format. Break complex work into tailored steps when useful; refine prompts against representative cases and defined criteria.
  • **Prompting** changes inputs; **fine-tuning** updates model weights. Grounding with retrieved material supplies relevant context, but does not guarantee correctness. Generated explanations do not by themselves establish model explainability.
  • **Hallucinations** are plausible but unsupported outputs. Validate factual claims, protect sensitive inputs, constrain tool permissions and provide human review or escalation where harm is possible.
  • **Inpainting** replaces content within an image; **outpainting** extends beyond its bounds; **super-resolution** increases image resolution. Generated training content needs the same relevance, rights and quality review as other data.

Phase V: Model evaluation

Classification metrics and error costs

  • **Define the positive class first.** TP: positive predicted positive; TN: negative predicted negative; FP: negative predicted positive; FN: positive predicted negative. The same mistaken label can be FP or FN depending on the defined positive class.
  • **Accuracy = (TP + TN) / all cases.** **Precision = TP / (TP + FP)** asks how many predicted positives are correct. **Recall = TP / (TP + FN)** asks how many actual positives are found.
  • **F1 = 2 x precision x recall / (precision + recall).** It balances precision and recall but does not measure all business costs. **ROC-AUC** summarizes discrimination across thresholds; assess precision-recall behavior when positives are rare.
  • **Decision thresholds** trade false alarms against missed cases. Agree the costs and operational consequences with stakeholders; inspect confusion matrices and subgroup results rather than selecting on one error rate.

Regression, clustering and business outcomes

  • **MAE** averages absolute numeric errors. **MSE** averages squared errors and penalizes large misses more strongly; **RMSE** restores the target's units. Compare with a meaningful baseline and the business tolerance.
  • **Clustering evaluation** combines separation/stability measures with SME judgment and actionable usefulness. Unhelpful clusters call for review of features, data gaps, scaling, distance and algorithm assumptions.
  • **Analytics questions:** descriptive asks what happened; diagnostic asks why; predictive estimates what may happen; prescriptive recommends actions. Data mining searches for useful patterns in data.

Validate performance and readiness

  • **Representative testing** covers intended populations, sites, languages, devices, rare events and operating conditions. Use held-out data, diverse cases and appropriate cross-validation; a single favorable test is insufficient.
  • **Evaluate the complete solution:** model quality, business KPIs, latency, load, reliability, usability, security and integration. End-user acceptance tests establish workflow fit; penetration testing addresses a different risk.
  • **Simulation and stress testing** probe safety boundaries and failure conditions before operational decisions. Explicitly assess human oversight, fallback behavior, compliance and environmental compatibility.
  • **Release gates** compare evidence with agreed thresholds. If performance or safeguards fail, diagnose data, preprocessing, representativeness and model issues; iterate and reevaluate before approving release.

Fairness, transparency and explainability

  • **Fairness assessment** examines historical bias, representation, proxies, labels and preprocessing, then compares relevant outcomes across groups. Work with affected stakeholders and SMEs on mitigations and retest trade-offs.
  • **Transparency** discloses AI use, intended purpose, data handling, limitations and decision responsibilities. Maintain appropriate documentation of sources, choices and impacts without exposing protected data.
  • **Explainability** makes model behavior or individual outputs understandable to the audience. Interpretable models and tools such as **SHAP** can help explain feature contributions; explanations alone do not prove causality or fairness.
  • **Responsible use** anticipates misuse, abuse and harmful impacts. Provide accountable human owners, meaningful review, contestability and appeal where appropriate; a technically accurate system can still be unacceptable.

Phase VI: Model operationalization

Choose the serving and deployment model

  • **Batch inference** scores accumulated inputs on a schedule. **Real-time inference** returns predictions within an application's latency budget. **Streaming inference** consumes ongoing events; it does not imply continuous learning.
  • **APIs and microservices** expose predictions to other systems. Define input/output contracts, authentication, timeouts, throughput and error handling; an API is an integration interface rather than a learning method.
  • **Edge deployment** runs a model on a local device for offline use, low latency or data locality. Check storage, memory, power, model size and update delivery. A cloud-only API cannot provide disconnected inference.
  • **Cloud, on-premises and hybrid** deployments trade capacity, connectivity, privacy, control and cost. Select from real usage scenarios and compliance needs; benchmark each site's hardware and network conditions.

Integration, rollout and continuity

  • **Operational readiness** includes reproducible builds, compatible interfaces, scalable infrastructure, assigned support roles, monitoring and documented acceptance criteria. Test the whole path from raw input to user action.
  • **Phased rollout** uses pilots and controlled exposure to validate performance and adoption. Provide training, a feedback route, escalation and a rollback plan before expanding.
  • **Continuity controls** provide human handoff, manual override or a limited fallback service for outages or unsafe outputs. Test these paths and define when the system must stop acting.
  • **Human oversight** matches the risk and uncertainty of the decision. Keep the final decision with qualified people when required; measure how users actually apply recommendations and when they override them.

Monitor, diagnose and improve

  • **Production monitoring** tracks data quality, model metrics, business KPIs, latency, failures, costs and fairness. Define alert thresholds, owners and response actions; collect verified outcome feedback when available.
  • **Data drift** is a change in input distributions, such as seasonal behavior. **Concept drift** changes the relationship between inputs and outcomes. Performance decline may also arise from broken pipelines or configuration changes.
  • **Diagnose before retraining:** inspect source/schema changes, feature mappings, preprocessing, labels, population shifts and recent releases. Additional training will not repair a wrongly mapped input field.
  • **Retraining pipelines** acquire and validate new data, rebuild candidates, evaluate them against the approved baseline and promote only after required reviews. Keep evaluation and monitoring active after every release.

Version control and ongoing governance

  • **Model versioning** retains immutable releases and their associated code, data lineage, preprocessing, weights and configuration. A model registry records approved artifacts and enables reproducible deployment and rollback.
  • **Configuration management** tracks dependencies, settings, environments and changes. Validate compatibility before replacing a model; retain prior versions for consumers needing rollback or a stable interface.
  • **Governance** assigns a human chain of accountability, testing requirements, approval authority, audit trails, permitted uses and incident response. Periodic audits complement continuous performance, fairness and compliance monitoring.
  • **Operational learning** feeds incidents, user feedback, lessons learned and changing obligations into the next iteration. Reassess value, data suitability, risk and go/no-go decisions as conditions change.