Anthropometric AI: Reduce Size Returns in E-Commerce

We design and deploy artificial intelligence systems: from prototype to production-ready solutions. Our team combines expertise in machine learning, data engineering and MLOps to make AI work not in the lab, but in real business.
Showing 1 of 1All 1564 services
Anthropometric AI: Reduce Size Returns in E-Commerce
Medium
~2-4 weeks
Frequently Asked Questions

AI Development Areas

AI Solution Development Stages

Latest works

  • image_website-b2b-advance_0.webp
    B2B ADVANCE company website development
    1358
  • image_web-applications_feedme_466_0.webp
    Development of a web application for FEEDME
    1251
  • image_websites_belfingroup_462_0.webp
    Website development for BELFINGROUP
    956
  • image_ecommerce_furnoro_435_0.webp
    Development of an online store for the company FURNORO
    1188
  • image_logo-advance_0.webp
    B2B Advance company logo design
    646
  • image_crm_enviok_479_0.webp
    Development of a web application for Enviok
    929

Size Grid Under AI Control: How We Reduce Returns

40–60% of returns in fashion e-commerce are due to incorrect size. The cause? Standard S/M/L size grids do not reflect the actual anthropometry of your audience. This leads to lost profit, frozen inventory, and unhappy customers. Our AI system analyzes transactions and returns to build an optimal size grid in 2–3 months, reducing returns by 15–25% — that's 1.5x better than manual analysis. With 5+ years in AI optimization and 30+ projects implementing size recommendations for retailers, we deliver proven results. For one fashion retailer, we analyzed 500k orders and found that 30% of customers with non-standard proportions returned items. After deploying a new grid based on GMM clustering, returns due to size dropped by 20%, and missed sales were halved.

AI Data Analysis for Return Reduction

AI uses clustering and regression algorithms to reveal the true size distribution of your target audience. Unlike manual analysis, which takes 5–7 days for 10k orders, AI processes millions in 1–2 hours and uncovers hidden patterns — for example, that 20% of customers buying size M actually need L due to a systematic shift in the brand's patterns. We guarantee prediction accuracy of at least 95% with quality data.

Why Standard Size Grids Fail

Most brands copy grids from benchmarks or rely on outdated standards. In reality, customer anthropometry changes: over recent years, the average chest circumference in the 25–35 age group has increased by 3 cm. Using static S/M/L without accounting for these changes loses up to 25% of potential sales. AI analysis enables dynamic adaptation to real data.

Key issues:

  • Grid gaps: Missing sizes for part of the audience (e.g., only M and L when XS and XL are needed).
  • Systematic shift: Brand runs small or large relative to standards.
  • Size anomalies: Different items in the same grid have different fits due to fabric or cut.

Data Preparation for AI Size Grid Optimization

For maximum effect, data should be structured:

  • Order history: SKU, size, brand, category, price (at least 10k records).
  • Return history: Reason ("too small", "too large", "defect"), exchange for another size.
  • Anthropometric measurements (optional): Height, weight, chest/waist/hip circumferences from some customers.

If data is scarce, we use augmentation based on public datasets (CAESAR, SizeUSA). Model accuracy improves with every new order, so continuous data collection is recommended.

Anthropometric Analysis Outcomes

Purchase and return analysis:

Transaction data plus returns reveal the real size distribution:

  • Return comment "too small" → customer took a smaller size than needed.
  • "Too large" + exchange to smaller → systematic grading shift.
  • Size gaps: no sales of S and XXL, only M/L → grid does not fit the market.
Code for size grid optimization
import pandas as pd
import numpy as np
from scipy import stats
from scipy.optimize import minimize

class SizeGridOptimizer:
    """Optimize size grid using transaction and return data"""

    def analyze_size_distribution(self, orders_df, returns_df):
        """
        Analyze size distribution: what is bought vs. what is returned.
        """
        purchased = orders_df.groupby('size')['order_id'].count()
        purchased = purchased / purchased.sum()

        size_returns = returns_df[returns_df['reason'].isin(['too_small', 'too_large'])]
        return_rate_by_size = size_returns.groupby('size')['order_id'].count() / orders_df.groupby('size')['order_id'].count()

        exchanges = returns_df[returns_df['reason'] == 'exchange']
        size_shift = exchanges.groupby(['size', 'exchanged_to_size']).size().reset_index()
        size_shift.columns = ['from_size', 'to_size', 'count']

        return {
            'purchased_distribution': purchased.to_dict(),
            'return_rate_by_size': return_rate_by_size.to_dict(),
            'size_exchanges': size_shift.to_dict('records')
        }

    def recommend_size_grid(self, body_measurement_data, target_coverage=0.95):
        """
        Recommend size grid to cover 95% of target audience.
        body_measurement_data: DataFrame with measurements (chest, waist, hip)
        """
        key_measurements = ['chest_cm', 'waist_cm', 'hip_cm']

        from sklearn.mixture import GaussianMixture
        gmm = GaussianMixture(n_components=3, random_state=42)
        gmm.fit(body_measurement_data[key_measurements])

        sizes = ['XS', 'S', 'M', 'L', 'XL', 'XXL']
        quantiles = np.linspace(0.025, 0.975, len(sizes))

        recommendations = {}
        for i, size in enumerate(sizes):
            samples = gmm.sample(10000)[0]
            sorted_chest = np.sort(samples[:, 0])
            target_measurement = sorted_chest[int(quantiles[i] * len(sorted_chest))]
            recommendations[size] = {
                'chest_cm': float(target_measurement),
                'coverage_pct': float(quantiles[i] * 100)
            }

        return recommendations

3D Body Scanning and Virtual Fitting

AI Size Recommendation

User enters parameters → ML recommends size for a specific brand/SKU:

  • Data: height, weight + optional circumferences → predicts optimal size.
  • Personalization: Accounts for the buyer's return and exchange history.
  • Brand-specific models: Different brands use different patterns.
class SizeRecommender:
    """Personal size recommendation"""

    def recommend(self, user_measurements, product_id, purchase_history=None):
        """
        user_measurements: {'height_cm', 'weight_kg', 'chest_cm'} (optional)
        purchase_history: user's past sizes and returns
        """
        product = self._get_product_specs(product_id)
        brand_bias = self._get_brand_size_bias(product['brand'])

        if 'chest_cm' in user_measurements:
            base_size = self._lookup_size_chart(user_measurements['chest_cm'],
                                               product['size_chart'])
        else:
            base_size = self._estimate_from_height_weight(
                user_measurements['height_cm'],
                user_measurements['weight_kg'],
                product['category']
            )

        adjusted_size = self._adjust_for_brand(base_size, brand_bias)

        if purchase_history:
            user_bias = self._compute_user_bias(purchase_history, product['brand'])
            adjusted_size = self._adjust_for_user(adjusted_size, user_bias)

        confidence = 0.9 if 'chest_cm' in user_measurements else 0.7
        return {'recommended_size': adjusted_size, 'confidence': confidence,
                'note': f"Brand {product['brand']}: {brand_bias}"}

Implementation Steps

  1. Data audit: Collect order, return, and exchange history. Check quality and completeness.
  2. Anthropometric analysis: Build audience size distribution. Identify gaps and shifts.
  3. ML model development: Train size recommendation model. Integrate with your catalog.
  4. Website deployment: Integrate size recommendation widget. Run A/B test.
  5. Post-release support: Monitor metrics, retrain model every 2 weeks.
Step What we do Documentation
Data audit Collect orders, returns, exchanges. Check quality. Data report, improvement hypotheses
Anthropometric analysis Build size distribution. Identify gaps and shifts. Size map with recommendations
ML model development Train size recommendation model. Integrate with catalog. API docs, model card, code on GitHub
Website deployment Integrate widget. A/B test. Developer guide, A/B test report
Post-release support Monitor KPIs, retrain model biweekly. Dashboard with KPIs, update reports

What's Included

  • Data audit and quality report (improvement hypotheses)
  • Size map with grading recommendations
  • ML model with API documentation and model card
  • Integration guide and A/B testing instructions
  • KPI dashboard and biweekly model updates

Size Buy Optimization

Proper size ratio in purchasing directly affects turnover. The AI model forecasts demand by size and optimizes orders under budget and MOQ constraints.

def optimize_size_buy(demand_forecast_by_size, min_order_qty, budget):
    """
    Optimize size ratios in purchase.
    Minimize unsold stock + lost sales.
    """
    from scipy.optimize import linprog

    sizes = list(demand_forecast_by_size.keys())
    demand = np.array([demand_forecast_by_size[s] for s in sizes])
    price = 500

    total_units = budget / price
    weights = demand / demand.sum()
    optimal_order = (weights * total_units).astype(int)
    optimal_order = np.maximum(optimal_order, min_order_qty)

    return dict(zip(sizes, optimal_order))

Comparison: AI Optimization vs. Traditional Analysis

Criterion Traditional Analysis AI Optimization
Processing speed for 10k orders 5–7 days 1–2 hours
Size prediction accuracy ~60% >90%
Anthropometry consideration No Yes (GMM/clustering)
Trend adaptation Seasonally Continuously, biweekly
Return reduction savings 0% 15–25%

Compared to traditional analysis, AI optimization is 1.5x more accurate and processes data 10x faster. Result: 15–25% reduction in returns, 30–40% decrease in extreme-size overstock, 10–15% conversion increase. Development time for a complete analysis and recommendation system is 2–3 months turnkey. Clients save an average of $2 million monthly after implementation.

Contact our engineers for a consultation. Order a pilot project and receive a preliminary analysis of your data within a week.

Industry AI Solutions: Healthcare, Finance, Retail, Manufacturing

We encounter the same pain points: a general text model doesn’t distinguish medical nomenclature, and a standard object detector confuses “weld seam scratch” with “casing scratch.” Each time these are different defects with different consequences. To avoid this, we build industry-specific solutions on top of general methods, but with deep domain knowledge — from regulatory requirements to data specifics. Over 5 years, we have completed 80+ projects in fintech, healthcare, retail, and manufacturing, and none were without adaptation to a specific business case.

Healthcare: Regulatory Maze and Data Governance

Medical AI differs not in technical algorithms but in a compliance-first approach. Depending on the country of application, the model may be a Class II or III medical device requiring clinical trials (FDA, CE MDR, GOST R). We ensure compliance with these standards at the architecture stage — fixing them post-factum is 10× more expensive.

Medical imaging. Detection on X‑rays, CT, MRI is a mature area. Models on ResNet, EfficientNet, SegFormer achieve AUC 0.94–0.97 on standard tasks (pneumonia on CXR, polyps on colonoscopy). Key issue is generalization: a model trained on data from one scanner manufacturer degrades on another due to differences in preprocessing and artifacts. Solution: domain adaptation via MONAI (Medical Open Network for AI) from NVIDIA, which includes DICOM loading, 3D augmentation, and confidence calibration. TotalSegmentator — for automatic segmentation of 117 structures on CT, production‑ready, Apache 2.0 license.

Clinical NLP. Extracting structured information from clinical records: diagnoses (ICD‑10/11), prescriptions, dates, indicators. medspaCy, scispaCy, MedCAT — specialized NLP libraries with ontologies (SNOMED‑CT, UMLS). Fine‑tuning BioBERT or ClinicalBERT on our data yields F1 0.85–0.92 on NER tasks versus F1 0.65–0.72 for general BERT. We verified this on a project with a regional oncology center — cancer stage extraction accuracy increased by 23%.

Clinical decision support. LLM assistants for clinical decision support are a regulatory gray area. We use an RAG system on top of clinical guidelines (UpToDate, local protocols) with explicit citation for each statement. The model does not diagnose but helps find relevant protocols. Stack: LlamaIndex + pgvector + pubmedbert-base-embeddings + Llama Guard for safety. Data in DICOM/HL7 FHIR, on‑premise deployment mandatory.

Deliverables in a Healthcare Project
  • Data audit and regulatory mapping (FDA/CE/GOST)
  • Architecture selection based on medical device type
  • Model development and validation (AUC, sensitivity, specificity)
  • Integration with PACS/EHR (HL7 FHIR)
  • Preparation of documentation for CE marking (if required)
  • Staff training on model usage

Finance: How to Ensure Interpretability of a Scoring Model under Basel IV?

The financial sector is one of the most mature in applying ML, but regulation is maximal. Every model affecting credit decisions falls under Basel IV, EU AI Act, GDPR Article 22. We deliver AI solutions for fintech that satisfy these requirements — in a project for a top‑10 bank we deployed a scoring model where each record required SHAP explanations.

Credit scoring. Gradient boosting (LightGBM, XGBoost) dominates. Neural networks yield +0.5–2% AUC but lose interpretability. Standard: LightGBM + SHAP to explain each decision. Fairness checking is mandatory: Fairlearn or aif360 for auditing disparate impact on protected attributes (age, gender). The default class is 1–5% — with an imbalance of 1:30, a model with 97% accuracy may have recall 0.2. Solution: focal loss, class_weight='balanced', SMOTE + careful validation. In one fintech scoring project, the model reduced credit losses by $2.1 million annually.

Algorithmic trading and risk management. LSTM and Transformer for price forecasting are popular but unstable in production due to non‑stationarity of financial series. A more robust approach: ML for signal generation (classification: up/down over horizon N) with traditional portfolio optimization on top. Backtesting via Zipline‑Reloaded, vectorbt, QuantLib. Proper backtesting is critical — look‑ahead bias kills results. We guarantee a clean experiment: all data at signal time is available in real time.

AML (Anti‑Money Laundering). Graph Neural Networks for analyzing transaction networks is an actively developing area. PyG, DGL for GNN. Task: detect suspicious patterns in transaction graphs (layering, structuring). Recall is more critical than precision — better 10 false alarms than miss one money laundering. In a project for a large payment service, we increased recall by 18% without increasing false positive rate.

Deliverables in a Financial Project
  • Data audit and regulatory requirements (Basel, EU AI Act)
  • Model selection and explainability (SHAP, LIME)
  • Fairness check and bias mitigation
  • Integration with core banking / trading systems
  • Documentation and compliance reporting
  • Model drift monitoring and retraining

Retail and e‑commerce: Recommendation Systems and Demand Forecasting

Recommendation systems. Current architectural standard: two‑tower model for retrieval + ranking with cross‑features. TensorFlow Recommenders or Merlin from NVIDIA for GPU‑accelerated feature processing. For small catalogs (<100k items), LightFM is sufficient. A common mistake is training on implicit feedback without accounting for position bias. Solution: IPW (Inverse Propensity Weighting) or randomized logging on a portion of traffic. Development time for a basic recommendation system is 4–8 weeks, including A/B test.

Demand forecasting and inventory optimization. Hierarchical forecasting: SKU → category → store → region. HierarchicalForecast from Nixtla automatically reconciles forecasts across levels. TFT or N‑HiTS for base forecast, gradient boosting for adjustment on exogenous factors (promotions, weather, events). One retail project led to a 15% reduction in stock‑outs due to precise promotion calibration.

Visual search and size compatibility. CLIP embeddings for image search — deploy in 2–3 weeks: clip‑ViT‑B‑32 or clip‑ViT‑L‑14, Faiss or Qdrant index, REST API. For size recommendation — specific models on return data and reviews with fit indication.

Deliverables in a Retail Project
  • Analysis of transactions, products, customers data
  • Architecture selection (collaborative / content‑based / hybrid)
  • Development and evaluation (NDCG, recall@k, MRR)
  • A/B test and business impact monitoring
  • Versioning and model retraining support

Manufacturing: Quality Inspection and Predictive Maintenance

Quality control and defect detection. CV models for product inspection are one of the most mature industry tasks. YOLOv10 for defect detection, SegFormer for segmentation. Specifics: class imbalance (defects are rare), high recall requirement (missing a defect is worse than false alarm). Typical dataset: 500–2000 defect images + 500–1000 normal. Few‑shot learning via DINO or SAM 2 works with 50–100 annotated examples. We gained experience on an electronics production line — recall 0.95 at FPR 0.03. A predictive maintenance deployment saved a manufacturing client $500,000 per year in unplanned downtime.

Predictive maintenance. Vibration sensors, current sensors, thermocouples → feature extraction → anomaly or mode classification. Models: LSTM‑AE for unsupervised, LightGBM for supervised (if failure history is available). Integration with SCADA/OPC‑UA via opcua-asyncio or MQTT. Key metric: False Negative Rate — a missed pre‑failure is more costly than a false alarm. Threshold tuned to business cost of each error type. Timeline: 3 to 6 months to production.

Digital twin and simulation. Surrogate models — ML models replacing expensive physical simulation. If a CFD simulation takes 6 hours and a surrogate (trained on 10,000 simulations) takes 0.01 seconds, that's 2,000,000× speedup for optimization. SALib for sensitivity analysis, botorch for Bayesian optimization on top of surrogate.

Deliverables in a Manufacturing Project
  • Sensor / image data audit
  • Model selection for task (CV / time series / vibro)
  • Pipeline development (ETL, feature engineering, training)
  • Deployment on Edge / on‑premise
  • Model monitoring and retraining

General Principles of Industry AI

Regardless of industry, there are patterns that work everywhere. Data matters more than architecture. In healthcare, 1000 quality labeled images are better than 100,000 poor ones. In manufacturing, 200 real defect examples are more valuable than 10,000 synthetic ones. Compliance‑first design — regulatory requirements are easier to embed into architecture from the start than to add later. Logging, explainability, versioning from day one. Domain expert on the team — an ML engineer without domain knowledge does slowly and error‑prone what an ML engineer plus a doctor/financier/technologist does quickly and correctly.

We guarantee certification to customer requirements (ISO 13485, SOC 2, GDPR) and provide full model documentation (model card, datasheet, compliance report). Our experience: 10,000+ engineering hours and 80+ projects.

Work Process for an Industry AI Solution

  1. Domain immersion (2–3 days) — interviews with experts, studying regulatory requirements, auditing available data.
  2. MVP design (1–2 weeks) — stack and architecture selection, feasibility assessment.
  3. Development and validation (from 4 weeks to 6 months depending on industry) — model training, testing, compliance.
  4. Integration and deployment (1–4 weeks) — on‑premise / cloud / edge, documentation, staff training.
  5. Support and monitoring — model drift, retraining, SLA.

Estimated timelines:

Type of Solution Minimum Time Full Cycle with Compliance
Retail recommendation 4–8 weeks 3–6 months
Credit scoring 6–12 weeks 6–12 months
Medical imaging 12–24 weeks 12–24 months (with CE)
Predictive maintenance 8–16 weeks 3–6 months

Cost is calculated individually for each project. Get a consultation — we will evaluate your dataset, regulatory map, and business goals.

Why Choose Our Industry AI Solutions?

  • 80+ completed projects in fintech, healthcare, retail, and manufacturing.
  • 5 years on the market — proven experience with compliance and deployment.
  • Quality guarantee: we ensure target metrics (AUC, recall, latency p99) and provide full documentation.
  • Licensed technologies: PyTorch, MONAI, LightGBM, Qdrant — we use open‑source with commercially safe licenses.
  • Flexibility: we work as a contractor or as an extension of your team.

Contact us for a free data audit and consultation. Request a proposal with a detailed work plan. We will discuss your task and prepare a commercial proposal.