A large organizational contract can bring substantial revenue to a private medical practice while also creating slow collections, heavy administrative work or dependence on one counterparty. Looking only at annual revenue can hide those differences.
AI-assisted contract segmentation means testing whether contracts form financially meaningful groups—not asking a model to decide which contracts to renew. For a staffed practice, the useful question is whether payment timing, administrative workload and contribution after attributable costs reveal patterns that deserve closer review.
This workflow applies to employer and other organizational agreements for which the practice can identify contract-level revenue and costs. It does not segment individual patients, recommend clinical services or assume that payer contracts can be freely repriced.
The objective is to discover and validate groups before using them in renewal planning. If the groups change dramatically when a reasonable assumption changes, they are not ready to guide decisions.
1. Define the Financial Question and Contract Population
Start with one question, such as: Which organizational contracts combine delayed cash receipts with substantial administrative work, and does that pattern persist after costs are measured consistently?
Define which agreements belong in the analysis. An employer agreement, a facility agreement and an insurance payer contract may have different payment mechanisms and obligations. Do not combine them simply because all generate revenue. Analyze comparable agreements together, or explicitly account for their structural differences.
Use one contract as the primary unit of analysis. Where a contract spans locations or entities, maintain supporting location and entity detail, then consolidate only after checking for duplicate revenue and internal charges.
Record common ownership or payment responsibility separately. Several agreements with the same employer group may look diversified by contract count while depending on the same counterparty.
Before modeling, write down:
- The decision the analysis will inform.
- The eligible contract population and exclusions.
- The observation period and accounting basis.
- The definitions of revenue, payment delay and attributable costs.
- The conditions that would make a proposed grouping unsuitable for use.
This prevents the team from changing definitions simply to make the clusters look more persuasive.
sbb-itb-17e8ec9
2. Build a Contract-Level Dataset Without Patient Detail
The analytical file should contain contract identifiers and aggregate financial measures, not patient names, diagnoses or individual balances. Keep any necessary mapping between coded identifiers and counterparties in an appropriately controlled location.
Removing names alone does not establish that a file is legally de-identified. Review exports for free-text notes, individual service dates and other potentially identifying information. HHS explains the minimum necessary standard and its exceptions; use that guidance with the practice's privacy advisers when designing the workflow. Do not put patient-identifiable information into ordinary Slack messages or a general-purpose AI tool.
Illustrative contract-level dataset
All figures in this example are invented for illustration. Assume six organizational agreements generated $600,000 of a practice's $2 million in recognized revenue over the same completed annual period. The table contains no patient-level records and is deliberately small enough to inspect manually; it is not evidence that six contracts are sufficient for reliable clustering.
| Contract code | Recognized revenue | Median paid-invoice days | Admin hours per $10,000 revenue | Attributable costs | Contribution | Share of total practice revenue |
|---|---|---|---|---|---|---|
| A | $180,000 | 28 | 4 | $126,000 | $54,000 | 9.0% |
| B | $150,000 | 65 | 9 | $90,000 | $60,000 | 7.5% |
| C | $90,000 | 60 | 11 | $72,000 | $18,000 | 4.5% |
| D | $75,000 | 30 | 5 | $45,000 | $30,000 | 3.75% |
| E | $60,000 | 27 | 4 | $33,000 | $27,000 | 3.0% |
| F | $45,000 | 70 | 12 | $36,000 | $9,000 | 2.25% |
Here, contribution equals recognized revenue minus attributable costs. Contribution rates range from 20% to 45%. This is a management-analysis measure, not net practice profit: shared overhead may remain outside it.
Reconcile the inputs before looking for patterns
Tie contract revenue to the ledger and explain differences between recognized revenue, invoices, receipts and outstanding receivables. The IRS's business recordkeeping guidance supports complete records and bank reconciliation, but it does not prescribe a clustering method.
Payment timing requires particular care. Median days for paid invoices excludes invoices that remain unpaid. Add an open-receivables aging measure and a consistent definition of the starting date. Otherwise, a contract with substantial unpaid balances could appear to pay promptly based only on its settled invoices.
For costs, document how the practice attributes provider payroll, employer payroll costs, contract-specific supplies and administrative labor. Estimate administrative hours from a consistent tracking process or documented sampling, not recollection alone. Mark missing cost estimates as unresolved rather than treating them as zero.
3. Select Features That Describe Financial Differences
A feature is an input used to compare contracts. Choose a compact set that reflects the question, rather than sending every available field into a model.
| Financial dimension | Candidate feature | Important check |
|---|---|---|
| Payment timing | Median payment days and overdue receivables share | Include unresolved invoices; distinguish contractual terms from actual delays |
| Administrative workload | Admin hours per $10,000 of revenue | Use comparable work categories and time estimates |
| Contribution | Contribution rate after attributable costs | Apply consistent payroll and cost-assignment rules |
| Revenue concentration | Share of total practice revenue | Also aggregate related counterparties |
| Payment variability | Variation in payment timing | Separate recurring behavior from one disputed invoice |
Avoid allowing contract size to dominate every comparison. Raw revenue, contribution dollars and attributable-cost dollars all tend to increase with size. Including all three without adjustment may produce little more than “large” and “small” groups.
A useful first test could use payment days, administrative intensity and contribution rate, while retaining revenue share as an exposure overlay. A second test could include concentration directly. Compare whether it changes the groups meaningfully.
Standardize numerical features so that different units do not determine their influence. Check skewed distributions and outliers before selecting transformations. If using both median payment days and overdue share, assess whether they duplicate the same signal and unintentionally give collections excessive weight.
Keep contract type, location and entity available for interpretation. Avoid treating arbitrary numeric codes for these categories as meaningful distances.
4. Test Clustering Against a Simple Baseline
Begin with a spreadsheet comparison or transparent grouping rules. If those answer the question clearly, clustering may add complexity without improving the decision.
With a larger, sufficiently complete contract population, an analyst can test methods such as:
- K-means: compares standardized numerical features, but can be sensitive to starting conditions and unusually large observations.
- Hierarchical clustering: shows how contracts combine at different levels, helping reviewers examine alternative group counts.
- Mixed-data approaches: may be appropriate when justified categorical features are included alongside numerical measures.
Do not choose the number of groups because the final report needs a fixed number of categories. Compare plausible alternatives, internal separation and practical interpretability. A strong separation score does not establish financial usefulness or prove that the pattern will persist.
AI can assist with drafting analysis code, checking field consistency or summarizing calculated profiles. A language model's suggested labels are not a substitute for reproducible calculations. Preserve the source snapshot, feature definitions, transformations, model settings and membership results so another reviewer can reproduce the work.
For the illustrative dataset, manual inspection suggests a possible faster-payment, lower-admin group containing A, D and E, and a slower-payment, higher-admin group containing B, C and F. These are candidate patterns, not reported model results. B also has a higher contribution rate than C and F, so combining all three could obscure an important distinction.
5. Check Whether the Groups Survive Reasonable Changes
A grouping is useful only if it is robust enough for its intended purpose. Test it before giving it a permanent name.
Rerun the analysis with different starting conditions, alternative observation periods and reasonable cost assumptions. Where practical, remove one influential contract at a time. Match groups by their profiles rather than label numbers: “Cluster 1” in one run may correspond to “Cluster 3” in another.
Track which contracts remain together, which move and whether the group's financial description still holds. Boundary contracts may need individual review instead of forced membership.
How unstable groupings can mislead renewal planning
The following comparison is illustrative, not an actual model output. It shows how different analytical choices could change the interpretation of Contract B from the sample dataset.
| Test | Possible grouping of B | Tempting renewal interpretation | What the reviewer should check |
|---|---|---|---|
| Raw revenue and payment days dominate | Large, slow-paying agreements | Treat large contracts as one renewal priority | Size may be masking workload and contribution differences |
| Standardized timing, workload and contribution rate | Slower payment with stronger contribution than C and F | Preserve the economics while investigating collection timing | Confirm the cost attribution supporting the 40% contribution rate |
| Revised administrative labor estimate reduces contribution | Slow payment with weaker contribution | Consider a materially different renewal position | Determine whether the estimate changed or the underlying work changed |
| Short period contains one disputed invoice | Apparent payment deterioration | Escalate renewal concerns immediately | Review a longer period and separate the dispute from recurring behavior |
The lesson is not that one model is automatically correct. It is that a changed label may reflect measurement choices rather than a changed contract. Do not let an unstable grouping become the sole basis for renewal planning.
Also inspect within-group spread. Similar averages can conceal one contract with exceptionally slow receipts or a concentration exposure that deserves individual attention.
6. Complete a Segment-Profile Worksheet
Name groups only after validation. Use descriptions of observed economics, such as “slower receipts, higher administrative intensity,” rather than judgments such as “bad contracts.”
| Worksheet field | What to record |
|---|---|
| Scope and version | Eligible agreements, observation period and analysis date |
| Membership | Contract codes, count and related-counterparty relationships |
| Financial profile | Revenue, receipt timing, overdue share, workload and contribution distribution |
| Concentration | Share of total practice revenue and common-counterparty exposure |
| Cost basis | Included costs, allocation drivers and excluded overhead |
| Data limitations | Missing estimates, short histories, disputes or incomplete invoices |
| Stability findings | Membership changes across methods, periods and assumptions |
| Exceptions | Contracts that differ materially from the group profile |
| Review question | The specific issue to investigate before renewal planning |
| Approval status | Accountant review, operational review and permitted use |
A useful profile explains both the pattern and its limitations. If the practice cannot describe why contracts belong together without referring only to a model score, the grouping needs more work.
7. Require Accountant and Operational Review
The accountant should confirm that revenue is not confused with cash receipts, costs are not double-counted and internal entity transfers do not inflate contract revenue. Shared administrative payroll needs a defensible allocation driver. Contract-level contribution should remain distinguishable from location P&L and fully allocated practice profit.
The practice manager should verify what the administrative hours represent. Reporting requirements, invoice corrections and routine collection follow-up may have different causes even when their recorded hours are similar.
Finally, review the actual agreement. Payment obligations, renewal provisions and negotiation options cannot be inferred from a cluster. Payer agreements in particular may limit available changes; obtain appropriate professional advice before acting on contractual questions.
Lucid Financials provides CPA-led bookkeeping, tax and CFO services for staffed private medical practices. Its finance team can support clean books and location/entity financial visibility underlying this analysis. This does not mean Lucid provides contract-clustering software.
The deliverable should be a reviewed dataset, documented candidate groups, stability findings and a list of contract-specific questions—not an automated renewal recommendation.
FAQs
How many contracts does a practice need for clustering?
There is no universal minimum that makes clustering reliable. The number of comparable agreements, completeness of the records and diversity of their economics all matter. With only a few contracts, a structured comparison may be more useful than a statistical model. Repeated monthly rows from the same contract are not equivalent to independent contracts.
Should contribution include all practice overhead?
Not necessarily. Start by defining costs attributable to each agreement consistently. Show shared overhead separately unless there is a defensible allocation basis. Then test whether reasonable allocation changes materially alter the grouping. Do not describe contribution before shared overhead as net profit.
What should happen if contract groups are unstable?
Investigate missing costs, unusual invoices, seasonality, outliers and duplicated features. Simplify the model or retain transparent comparison rules if they are more dependable. Document uncertainty and keep affected contracts under individual review rather than forcing them into a renewal category.
Can AI decide which agreements to renew?
No. AI-assisted grouping can highlight similarities worth investigating, but it does not establish contractual rights, explain every cost or replace owner judgment. Renewal planning should consider validated financial records, operational requirements, concentration exposure and the agreement itself.