Home
%3CLINGO-SUB%20id%3D%22lingo-sub-878407%22%20slang%3D%22en-US%22%3ERe%3A%20Using%20machine%20learning%20to%20improve%20the%20Windows%2010%20update%20experience%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-878407%22%20slang%3D%22en-US%22%3E%3CP%3ESo%2C%20second%20iteration%20(1809)%20was%20so%20bad%20that%20it%20is%20not%20even%20mentioned%3F%20%3A)%3C%2Fimg%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-879485%22%20slang%3D%22en-US%22%3ERe%3A%20Using%20machine%20learning%20to%20improve%20the%20Windows%2010%20update%20experience%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-879485%22%20slang%3D%22en-US%22%3EWell%2C%20Figure%205%20and%20the%20spike%20in%20Dec.%202018%20seems%20to%20point%20to%201809%20and%20Microsoft's%20pulling%20of%20that%20upgrade%20from%20distribution.%20So%201809%20is%20there%2C%20if%20only%20in%20spirit.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-882013%22%20slang%3D%22en-US%22%3ERe%3A%20Using%20machine%20learning%20to%20improve%20the%20Windows%2010%20update%20experience%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-882013%22%20slang%3D%22en-US%22%3ESo%20this%20article%20is%20trying%20to%20say%2C%20that%20machine%20learning%20is%20protecting%20us%20from%20bad%20decisions%20made%20by%20Microsoft%20(giving%20up%20on%20testing%20team)%3F%20Thanks%20machines%2C%20keep%20up%20the%20good%20work!!%20%3A)%3C%2Fimg%3E%20These%20CEOs%20just%20keep%20talking%20and%20talking....%20Please%20stop%20using%20Home%20users%20as%20guniea%20pigs%2C%20thank%20you.%20%22Keeping%20Windows%2010%20PC%20users%20safe%20and%20current%20has%20been%20an%20exciting%20journey%22%20-%20maybe%20for%20you%2C%20very%20frustrating%20for%20us%2Fusers.%20This%20is%20total%20bull**it%2C%20you%20know%3F%20Sory%20for%20my%20anger%2C%20but%20there%20is%20just%20no%20light%20at%20the%20end%20of%20the%20tunnel%20right%20now.%20This%20is%20the%20worst%20era%20of%20Windows%2C%20congrats!%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-877860%22%20slang%3D%22en-US%22%3EUsing%20machine%20learning%20to%20improve%20the%20Windows%2010%20update%20experience%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-877860%22%20slang%3D%22en-US%22%3E%3CP%3EThis%20post%20was%20co-authored%20by%26nbsp%3B%26nbsp%3B(Senior%20Data%20Scientist%2C%20Microsoft%20Cloud%20and%20AI)%20and%26nbsp%3B%26nbsp%3B(Partner%20Data%20Scientist%2C%20Microsoft%20Cloud%20and%20AI).%3C%2FP%3E%3CP%3ERegular%20Microsoft%20updates%20to%20your%20Windows%2010%20PC%20help%20ensure%20that%20it%E2%80%99s%20kept%20secure%20from%20possible%20threats%20and%20empowered%20with%20the%20latest%20features%20for%20peak%20performance%20and%20productivity.%20Because%20of%20the%20wonderful%20diversity%20of%20hardware%2C%20devices%20and%20applications%20available%20to%20Windows%20customers%2C%20each%20PC%E2%80%99s%20update%20experience%20may%20be%20slightly%20different.%20To%20ensure%20that%20all%20PCs%20have%20a%20seamless%20update%20experience%E2%80%94regardless%20of%20their%20differences%E2%80%94we%20use%20a%20combination%20of%20testing%2C%20close%20partner%20engagement%2C%20feedback%2C%20diagnostic%20data%2C%20and%20real-life%20insights%20to%20manage%20quality.%3C%2FP%3E%3CP%3ETo%20help%20with%20the%20complexity%20of%20the%20aspects%20we%20need%20to%20evaluate%2C%20we%20are%20increasing%20our%20investments%20in%20machine%20learning%20(ML)%20technologies.%20Machine%20learning%20helps%20us%20detect%20potential%20issues%20more%20quickly%20and%20helps%20us%20decide%20the%20best%20time%20to%20update%20each%20PC%20once%20a%20new%20version%20of%20Windows%20is%20available.%3C%2FP%3E%3CP%3EIn%20this%20blog%2C%20we%E2%80%99ll%20cover%20the%20technical%20details%20of%20how%20machine%20learning%20is%20used%20in%20the%20rollout%20of%20Windows%2010%20feature%20updates.%3C%2FP%3EEvolving%20the%20use%20of%20ML%20to%20update%20Windows%2010%20PCs%3CP%3EThe%20rollout%20of%20any%20feature%20update%20is%20a%20gradual%20process.%20We%20start%20with%20PCs%20predicted%20to%20have%20a%20great%20update%20experience%20while%20safeguarding%20those%20PCs%20with%20known%20issues%20and%2C%20ultimately%2C%20expand%20to%20all%20eligible%20PCs%20as%20issues%20are%20resolved.%3C%2FP%3E%3CP%3EWindows%2010%2C%20version%201803%20(the%20April%202018%20Update)%20was%20the%20first%20time%20we%20used%20ML%20on%20a%20broad%20scale.%20We%20started%20with%20six%20core%20areas%20of%20PC%20health%20(e.g.%20overall%20PC%20reliability)%20to%20determine%20whether%20the%20feature%20update%20process%20went%20smoothly.%20With%20Windows%2010%2C%20version%201903%20(the%20May%202019%20update)%2C%20our%20third%20iteration%20of%20using%20ML%20in%20a%20feature%20update%20rollout%2C%20we%20can%20now%20evaluate%2035%20areas%20of%20PC%20health%20and%20the%20process%20will%20continue%20to%20evolve%20with%20additional%20health%20measures%20to%20improve%20your%20update%20experience.%3C%2FP%3E%3CP%3EThroughout%20our%20ML%20journey%2C%20we%20consistently%20see%20that%20PCs%20nominated%20for%20updates%20via%20ML%20have%20a%20significantly%20better%20update%20experience.%20For%20example%2C%20as%20shown%20in%20the%20chart%20below%2C%20PCs%20chosen%20via%20ML%20have%20fewer%20than%20half%20the%20number%20of%20system-initiated%20uninstalls%2C%20half%20the%20number%20of%20kernel%20mode%20crashes%2C%20and%20five%20times%20fewer%20post-update%20driver%20issues.%3C%2FP%3E%3CP%3E%3CBR%20%2F%3EFigure%201.%20A%20comparison%20of%20system%20initiated%20uninstalls%2C%20post-update%20kernel%20mode%20crashes%2C%20and%20post-update%20driver%20issues%20for%20the%20baseline%20and%20the%20ML%20model.%3C%2FP%3EBuilding%20an%20ML%20model%20to%20support%20Windows%2010%20updates%3CP%3ESince%20building%20an%20ML%20model%20to%20effectively%20support%20the%20rollout%20of%20Windows%2010%20updates%20is%20a%20complex%20process%2C%20we%20are%20sharing%20more%20detail%20on%20the%20data%20science%20behind%20the%20model%2C%20including%20what%20makes%20this%20problem%20different%20from%20other%20ML%20problems.%20In%20addition%2C%20we%20are%20outlining%20how%20the%20ML%20model%20produces%20a%20probability%20of%20having%20a%20seamless%20update%20experience%2C%20how%20we%20identify%20possible%20safeguards%2C%20and%20how%20we%20determine%20if%20the%20model%20has%20learned%20enough%20to%20be%20put%20in%20action.%3C%2FP%3EOperating%20system%20updates%20are%20unique%3CP%3EFrom%20an%20ML%20standpoint%2C%20operating%20system%20(OS)%20updates%20are%20unique%20for%20several%20reasons%3A%3C%2FP%3EInference%20relies%20on%20OS%20diagnostic%20data%20from%20millions%20of%20PCs%20collected%20in%20order%20to%20diagnose%20issues.%20Features%20are%20highly%20dimensional%20and%20sparse%20(for%20example%2C%20the%20millions%20of%20possible%20hardware%20drivers%2C%20each%20of%20which%20is%20installed%20on%20a%20small%20number%20of%20PCs).%20Labels%20are%20not%20automatically%20available%3B%20instead%2C%20they%20need%20to%20be%20constructed%20by%20combining%20other%20diagnostic%20signals.%20The%20class%20label%20distribution%20is%20intentionally%20skewed%20to%20have%20more%20examples%20of%20seamless%20updates%20and%20few%20issues.%20The%20entire%20setup%20operates%20in%20a%20constantly%20changing%20and%20dynamic%20environment.%3CP%3EGiven%20this%20complexity%2C%20we%20need%20a%20model%20that%20is%20dynamically%20trained%20on%20the%20most%20recent%20set%20of%20PCs%20that%20have%20been%20updated%20and%20a%20model%20that%20is%20capable%20of%20differentiating%20between%20PCs%20having%20a%20good%20update%20experience%20and%20those%20having%20a%20poor%20one.%3C%2FP%3EDesigning%20a%20dynamic%20ML%20solution%3CP%3EThe%20graphic%20below%20shows%20the%20overall%20architecture%20of%20how%20ML%20is%20used%20to%20nominate%20PCs.%3C%2FP%3E%3CP%3E%3CBR%20%2F%3EFigure%202.%20Machine%20learning%20architecture%20used%20for%20the%20Windows%2010%20intelligent%20rollout%20process%3C%2FP%3E%3CP%3EEvery%20release%20starts%20with%20offering%20the%20Windows%2010%20update%20to%20early%20adopters%20(such%20as%20Windows%20Insiders%20and%20those%20actively%20seeking%20out%20the%20update).%20Once%20the%20initial%20set%20of%20PCs%20has%20been%20offered%20the%20update%2C%20we%20monitor%20their%20update%20experience%20via%20diagnostic%20data%20(e.g.%20kernel%20mode%20crashes%2C%20system%20initiated%20uninstalls%2C%20abnormal%20shutdowns%2C%20and%20driver%20issues).%3C%2FP%3E%3CP%3EMachine%20learning%20provides%20two%20key%20capabilities%20here%3A%3C%2FP%3EIt%20identifies%20potential%20issues%20that%20result%20in%20safeguard%20holds%20to%20protect%20PCs%20that%20have%20yet%20to%20be%20updated%20so%20that%20those%20issues%20can%20be%20promptly%20investigated%20and%20fixed%20by%20Windows%20developers.%20It%20predicts%20and%20nominates%20PCs%20that%20will%20have%20a%20seamless%20update%20experience%20and%20should%2C%20thus%2C%20be%20offered%20the%20update.%3CP%3EAs%20this%20entire%20process%20repeats%20daily%2C%20the%20model%20constantly%20learns%20from%20the%20most%20recent%20set%20of%20updated%20PCs.%20Over%20time%2C%20as%20issues%20are%20fixed%2C%20PCs%20previously%20predicted%20to%20have%20a%20poor%20update%20experience%20will%20now%20be%20predicted%20to%20have%20a%20better%20one%2C%20leading%20to%20them%20being%20offered%20the%20update.%3C%2FP%3ENominating%20the%20%22best%22%20PCs%3CP%3EWe%20build%20a%20classification-based%20ML%20solution%20for%20each%20update.%20The%20training%20data%20is%20focused%20on%20the%20latest%20set%20of%20PCs%20on%20the%20newest%20Windows%2010%20feature%20update%2C%20the%20PC%20configurations%20at%20the%20time%20of%20the%20update%20(i.e.%20hardware%20characteristics%2C%20drivers%2C%20apps%2C%20etc.)%2C%20and%20a%20binary%20label%20constructed%20from%20a%20set%20of%20core%20diagnostic%20signals%20(e.g.%20whether%20a%20PC%20had%20a%20system%20initiated%20uninstall%20or%20reliability%20of%20the%20PC%20after%20the%20update).%3C%2FP%3E%3CP%3E%3CBR%20%2F%3EFigure%203.%20An%20example%20of%20the%20diagnostic%20data%20used%20to%20train%20the%20ML%20model%20used%20for%20intelligent%20rollout%3C%2FP%3E%3CP%3EWe%20use%20%3CA%20href%3D%22https%3A%2F%2Fazure.microsoft.com%2Fen-us%2Fservices%2Fdatabricks%2F%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%20target%3D%22_blank%22%3EMicrosoft%20Azure%20Databricks%3C%2FA%3E%20to%20build%20the%20ML%20model%3A%3C%2FP%3EWe%20begin%20with%20a%20data%20preparation%20layer%20focused%20on%20ensuring%20that%20the%20model%20is%20only%20trained%20with%20high%20quality%20data.%20Data%20cleansing%20and%20monitoring%20(facilitated%20by%20Microsoft%20Power%20BI)%20help%20with%20this%2C%20allowing%20us%20to%20track%20anomalies%2C%20such%20as%20missing%20data%2C%20and%20then%20build%20in%20resiliency%20for%20cases%20where%20data%20is%20missing%20or%20unintentionally%20biased.%20We%20rely%20on%20multiple%20encoding%20strategies%20(such%20as%20one%20hot%20encoding%20and%20target%20encoding)%20to%20allow%20the%20model%20to%20learn%20about%20features%2C%20such%20as%20drivers%2C%20that%20are%20high%20dimensional%20For%20modeling%2C%20we%20rely%20on%20an%20ensemble%20approach%2C%20a%20combination%20of%20multiple%20classifiers%2C%20each%20predicting%20a%20separate%20diagnostic%20signal%20of%20post-update%20experience%20(for%20example%2C%20the%20likelihood%20of%20experiencing%20a%20kernel%20mode%20crash).%20This%20allows%20better%20understanding%20of%20why%20a%20PC%20is%20likely%20to%20have%20a%20good%20(or%20poor)%20update%20experience.%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3EFigure%204.%20Process%20for%20identifying%20the%20%E2%80%9Cbest%E2%80%9D%20PCs%20%E2%80%93%20preparing%20the%20data%2C%20creating%20individual%20models%2C%20and%20combining%20them%20into%20one%20score.%3CBR%20%2F%3E%3CBR%20%2F%3E%20The%20classification%20algorithms%20used%20in%20this%20space%20tend%20to%20be%20logistic%20regression%20models%20or%20boosted%20trees%20(as%20those%20are%20shown%20to%20have%20better%2C%20more%20consistent%20performance%20in%20this%20space).%20The%20models%20are%20also%20tuned%20to%20the%20best%20parameters%2C%20both%20in%20terms%20of%20generic%20parameters%20(such%20as%20the%20regression%20penalization%20factor)%2C%20as%20well%20as%20a%20dozen%20or%20so%20custom%20parameters%20(for%20example%2C%20the%20optimum%20training-validation-test-ensemble%20split).%20We%20use%20typical%20classification%20assessment%20metrics%20(e.g.%20the%20area%20under%20the%20receiver%20operating%20characteristics%2C%20or%20ROC%2C%20curve)%20to%20understand%20the%20accuracy%20of%20each%20model%20and%20to%20pick%20the%20best%20set%20of%20parameters.%20For%20each%20release%2C%20we%20thoroughly%20test%20hundreds%20of%20parameter%20combinations%20and%20modeling%20strategies%20to%20pick%20the%20best%20performing%20model.%3CP%3EThese%20elements%20all%20come%20together%20as%20follows%3A%20If%20your%20PC%20is%20eligible%20to%20receive%20an%20update%2C%20we%20will%20apply%20the%20best-known%20ML%20model%20to%20your%20configuration%20to%20assess%20how%20likely%20your%20PC%20is%20to%20have%20a%20good%20update%20experience%20and%20which%20compatibility%20issues%20we%20need%20to%20fix%20in%20order%20to%20ensure%20your%20update%20experience%20will%20be%20great.%3C%2FP%3EIdentifying%20safeguard%20holds%3CP%3EA%20key%20element%20of%20the%20ML-driven%20rollout%20process%20is%20the%20capability%20to%20%3CA%20href%3D%22https%3A%2F%2Fblogs.windows.com%2Fwindowsexperience%2F2019%2F01%2F15%2Fapplication-compatibility-in-the-windows-ecosystem%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%20target%3D%22_blank%22%3Eidentify%20compatibility%20issues%3C%2FA%3E%20early%2C%20enabling%20us%20to%20establish%20safeguard%20holds%20to%20protect%20specific%20PCs%20from%20receiving%20a%20given%20update.%20Historically%2C%20compatibility%20issues%20were%20detected%20via%20laborious%20lab%20tests%2C%20feedback%2C%20support%20calls%2C%20and%20other%20channels.%20While%20these%20channels%20are%20still%20used%2C%20applying%20ML%20to%20the%20diagnostic%20data%20from%20the%20PCs%20in%20our%20broad%20ecosystem%20enables%20us%20to%20identify%20the%20patterns%20(in%20hardware%20characteristics%2C%20drivers%2C%20applications%2C%20etc.)%20that%20are%20most%20correlated%20with%20any%20update-related%20disruption.%3C%2FP%3E%3CP%3ETo%20achieve%20this%2C%20we%20use%20anomaly%20detection%2C%20which%20identifies%20when%20a%20feature%20or%20pattern%20(two%20or%20more%20features)%20results%20in%20a%20higher%20failure%20rate%20than%20we%20see%20for%20the%20entire%20population.%20Implemented%20using%20%3CA%20href%3D%22https%3A%2F%2Fazure.microsoft.com%2Fen-us%2Fservices%2Fdatabricks%2F%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%20target%3D%22_blank%22%3EMicrosoft%20Azure%20Databricks%3C%2FA%3E%2C%20we%20can%20rapidly%20scale%20to%20millions%20of%20PCs%20and%20establish%20safeguard%20holds%20to%20prevent%20PCs%20from%20being%20disrupted%20from%20potential%20update-related%20issues.%3C%2FP%3E%3CP%3E%3CBR%20%2F%3EFigure%205.%20Chart%20showing%20a%20feature%20or%20pattern%20that%20is%20failing%20at%2082%25%20against%20a%20baseline%20failure%20rate%20of%20about%203%25.%20This%20identifies%20where%20a%20safeguard%20hold%20is%20needed%20to%20prevent%20other%20PCs%20from%20experiencing%20similar%20issues.%3C%2FP%3E%3CP%3EYou%20can%20find%20a%20list%20and%20details%20on%20the%20latest%20known%20issues%20and%20safeguards%20by%20visiting%20the%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fwindows%2Frelease-information%2Fstatus-windows-10-1903%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%20target%3D%22_blank%22%3EWindows%20release%20health%20dashboard%3C%2FA%3E.%3C%2FP%3EMonitoring%20saturation%20of%20feature%20diversity%3CP%3EWith%20the%20diversity%20of%20the%20Windows%20ecosystem%20and%20an%20ML%20model%20that%20is%20refreshed%20every%20day%2C%20it's%20important%20to%20determine%20when%20the%20ML%20model%20is%20ready%20to%20be%20broadly%20applied.%20In%20other%20words%2C%20we%20can%20only%20use%20ML%20to%20determine%20when%20to%20offer%20the%20update%20to%20your%20PC%20if%20we%20have%20seen%20adequate%20similar%20hardware%20configurations%20that%20have%20successfully%20updated.%3C%2FP%3E%3CP%3ETypical%20ML%20scenarios%20use%20a%20learning%20curve%20to%20determine%20when%20models%20are%20adequately%20trained%3B%20however%2C%20due%20to%20the%20unique%20diversity%20of%20the%20Windows%20ecosystem%2C%20we%20use%20a%20concept%20called%20saturation%2C%20which%20looks%20at%20how%20many%20of%20the%20diverse%20hardware%20components%2C%20drivers%2C%20applications%2C%20etc.%20have%20been%20seen%20so%20far%20from%20updated%20PCs.%20Saturation%20helps%20us%20understand%20the%20extent%20to%20which%20the%20feature%20update%20rollout%20has%20penetrated%20the%20hardware%20and%20component%20ecosystem%20and%2C%20thus%2C%20is%20representative%20of%20the%20population%20of%20PCs%20to%20be%20updated.%3C%2FP%3E%3CP%3E%3CBR%20%2F%3EFigure%206.%20Monitoring%20the%20saturation%20of%20the%20Windows%20feature%20update%20space.%20Continuous%20dynamic%20training%20of%20the%20ML%20model%20typically%20starts%20once%20saturation%20reaches%20greater%20than%2060%25%20indicating%20that%20the%20training%20data%20is%20representative%20of%20the%20diversity%20of%20the%20Windows%20ecosystem.%3C%2FP%3EMeasuring%20the%20impact%20of%20ML%20on%20the%20Windows%2010%20update%20process%3CP%3EKeeping%20Windows%2010%20PC%20users%20safe%20and%20current%20has%20been%20an%20exciting%20journey%2C%20not%20just%20in%20terms%20of%20building%20out%20the%20technologies%20to%20support%20a%20large-scale%20ML%20deployment%2C%20but%20also%20in%20terms%20of%20determining%20how%20to%20measure%20impact%20in%20this%20context.%20We%20measure%20impact%20via%20a%20few%20different%20progress%20indicators%3A%3C%2FP%3EML%20model%20performance.%20The%20earliest%20indicator%20of%20impact%20is%20the%20quantifiable%20performance%20of%20the%20machine%20learning%20model%2C%20such%20as%20the%20area%20under%20the%20ROC%20curve%20and%20how%20well%20the%20algorithm%20calibrates%20predictions%20to%20reflect%20the%20actual%20probability%20of%20success.%20Feature%20update%20safeguard%20holds%20identified%20via%20ML.%20The%20second%20indicator%20of%20impact%20is%20the%20speed%20at%20which%20we%20are%20able%20to%20identify%20and%20put%20in%20place%20safeguard%20holds%20to%20protect%20PCs.%20This%20directly%20relates%20to%20the%20PCs%20that%20are%20protected%20from%20any%20adverse%20update%20experiences.%20Monitoring%20health%20signals%20post-update.%20The%20final%20indicator%20of%20impact%20confirms%20that%20the%20ML%20algorithm%20is%20indeed%20achieving%20what%20it%20is%20trained%20to%20do.%20We%20have%20consistently%20observed%20that%20the%20PCs%20chosen%20by%20the%20ML%20algorithm%20fare%205-40%25%20better%20than%20others.%20(See%20Figure%201%20for%20examples.)%20Summary%3CP%3EWhile%20we%20are%20excited%20by%20the%20promise%20of%20machine%20learning%2C%20there%20is%20still%20much%20work%20to%20be%20done%20to%20ensure%20that%20ML%20is%20comprehensive%2C%20more%20automated%2C%20and%20agile%20enough%20to%20catch%20issues%20in%20a%20few%20seconds%20rather%20than%20hours.%20In%20upcoming%20feature%20updates%2C%20we%20will%20continue%20to%20evolve%20ML%20and%20share%20more%20details%20on%20the%20progress%20we%20make.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-877860%22%20slang%3D%22en-US%22%3E%3CP%3ELearn%20how%20we%20use%20ML%20to%20guide%20the%20rollout%20of%20feature%20updates%20and%20identify%20which%20PCs%20will%20have%20a%20great%20experience.%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-877860%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EServicing%20and%20updates%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Microsoft

This post was co-authored by @archana_ramesh (Senior Data Scientist, Microsoft Cloud and AI) and @michael_stephenson (Partner Data Scientist, Microsoft Cloud and AI).

Regular Microsoft updates to your Windows 10 PC help ensure that it’s kept secure from possible threats and empowered with the latest features for peak performance and productivity. Because of the wonderful diversity of hardware, devices and applications available to Windows customers, each PC’s update experience may be slightly different. To ensure that all PCs have a seamless update experience—regardless of their differences—we use a combination of testing, close partner engagement, feedback, diagnostic data, and real-life insights to manage quality.

To help with the complexity of the aspects we need to evaluate, we are increasing our investments in machine learning (ML) technologies. Machine learning helps us detect potential issues more quickly and helps us decide the best time to update each PC once a new version of Windows is available.

In this blog, we’ll cover the technical details of how machine learning is used in the rollout of Windows 10 feature updates.

Evolving the use of ML to update Windows 10 PCs

The rollout of any feature update is a gradual process. We start with PCs predicted to have a great update experience while safeguarding those PCs with known issues and, ultimately, expand to all eligible PCs as issues are resolved.

Windows 10, version 1803 (the April 2018 Update) was the first time we used ML on a broad scale. We started with six core areas of PC health (e.g. overall PC reliability) to determine whether the feature update process went smoothly. With Windows 10, version 1903 (the May 2019 update), our third iteration of using ML in a feature update rollout, we can now evaluate 35 areas of PC health and the process will continue to evolve with additional health measures to improve your update experience.

Throughout our ML journey, we consistently see that PCs nominated for updates via ML have a significantly better update experience. For example, as shown in the chart below, PCs chosen via ML have fewer than half the number of system-initiated uninstalls, half the number of kernel mode crashes, and five times fewer post-update driver issues.

01_comparison.png
Figure 1. A comparison of system initiated uninstalls, post-update
kernel mode crashes, and post-update driver issues for the baseline and the ML model.

Building an ML model to support Windows 10 updates

Since building an ML model to effectively support the rollout of Windows 10 updates is a complex process, we are sharing more detail on the data science behind the model, including what makes this problem different from other ML problems. In addition, we are outlining how the ML model produces a probability of having a seamless update experience, how we identify possible safeguards, and how we determine if the model has learned enough to be put in action.

Operating system updates are unique

From an ML standpoint, operating system (OS) updates are unique for several reasons:

  • Inference relies on OS diagnostic data from millions of PCs collected in order to diagnose issues.
  • Features are highly dimensional and sparse (for example, the millions of possible hardware drivers, each of which is installed on a small number of PCs).
  • Labels are not automatically available; instead, they need to be constructed by combining other diagnostic signals.
  • The class label distribution is intentionally skewed to have more examples of seamless updates and few issues.
  • The entire setup operates in a constantly changing and dynamic environment.

Given this complexity, we need a model that is dynamically trained on the most recent set of PCs that have been updated and a model that is capable of differentiating between PCs having a good update experience and those having a poor one.

Designing a dynamic ML solution

The graphic below shows the overall architecture of how ML is used to nominate PCs.

02_architecture.png
Figure 2. Machine learning architecture used for the Windows 10 intelligent rollout process

Every release starts with offering the Windows 10 update to early adopters (such as Windows Insiders and those actively seeking out the update). Once the initial set of PCs has been offered the update, we monitor their update experience via diagnostic data (e.g. kernel mode crashes, system initiated uninstalls, abnormal shutdowns, and driver issues).

Machine learning provides two key capabilities here:

  • It identifies potential issues that result in safeguard holds to protect PCs that have yet to be updated so that those issues can be promptly investigated and fixed by Windows developers.
  • It predicts and nominates PCs that will have a seamless update experience and should, thus, be offered the update.

As this entire process repeats daily, the model constantly learns from the most recent set of updated PCs. Over time, as issues are fixed, PCs previously predicted to have a poor update experience will now be predicted to have a better one, leading to them being offered the update.

Nominating the "best" PCs

We build a classification-based ML solution for each update. The training data is focused on the latest set of PCs on the newest Windows 10 feature update, the PC configurations at the time of the update (i.e. hardware characteristics, drivers, apps, etc.), and a binary label constructed from a set of core diagnostic signals (e.g. whether a PC had a system initiated uninstall or reliability of the PC after the update).

03_example.png
Figure 3. An example of the diagnostic data used to train the ML model used for intelligent rollout

We use Microsoft Azure Databricks to build the ML model:

  • We begin with a data preparation layer focused on ensuring that the model is only trained with high quality data. Data cleansing and monitoring (facilitated by Microsoft Power BI) help with this, allowing us to track anomalies, such as missing data, and then build in resiliency for cases where data is missing or unintentionally biased.
  • We rely on multiple encoding strategies (such as one hot encoding and target encoding) to allow the model to learn about features, such as drivers, that are high dimensional
  • For modeling, we rely on an ensemble approach, a combination of multiple classifiers, each predicting a separate diagnostic signal of post-update experience (for example, the likelihood of experiencing a kernel mode crash). This allows better understanding of why a PC is likely to have a good (or poor) update experience.

    04_bestPC.png
    Figure 4. Process for identifying the “best” PCs – preparing the data, creating individual models, and combining them into one score.

  • The classification algorithms used in this space tend to be logistic regression models or boosted trees (as those are shown to have better, more consistent performance in this space).
  • The models are also tuned to the best parameters, both in terms of generic parameters (such as the regression penalization factor), as well as a dozen or so custom parameters (for example, the optimum training-validation-test-ensemble split). We use typical classification assessment metrics (e.g. the area under the receiver operating characteristics, or ROC, curve) to understand the accuracy of each model and to pick the best set of parameters. For each release, we thoroughly test hundreds of parameter combinations and modeling strategies to pick the best performing model.

These elements all come together as follows: If your PC is eligible to receive an update, we will apply the best-known ML model to your configuration to assess how likely your PC is to have a good update experience and which compatibility issues we need to fix in order to ensure your update experience will be great.

Identifying safeguard holds

A key element of the ML-driven rollout process is the capability to identify compatibility issues early, enabling us to establish safeguard holds to protect specific PCs from receiving a given update. Historically, compatibility issues were detected via laborious lab tests, feedback, support calls, and other channels. While these channels are still used, applying ML to the diagnostic data from the PCs in our broad ecosystem enables us to identify the patterns (in hardware characteristics, drivers, applications, etc.) that are most correlated with any update-related disruption.

To achieve this, we use anomaly detection, which identifies when a feature or pattern (two or more features) results in a higher failure rate than we see for the entire population. Implemented using Microsoft Azure Databricks, we can rapidly scale to millions of PCs and establish safeguard holds to prevent PCs from being disrupted from potential update-related issues.

05_chart.png
Figure 5. Chart showing a feature or pattern that is failing at 82% against a baseline failure rate of about 3%. This identifies where a safeguard hold is needed to prevent other PCs from experiencing similar issues.

You can find a list and details on the latest known issues and safeguards by visiting the Windows release health dashboard.

Monitoring saturation of feature diversity

With the diversity of the Windows ecosystem and an ML model that is refreshed every day, it's important to determine when the ML model is ready to be broadly applied. In other words, we can only use ML to determine when to offer the update to your PC if we have seen adequate similar hardware configurations that have successfully updated.

Typical ML scenarios use a learning curve to determine when models are adequately trained; however, due to the unique diversity of the Windows ecosystem, we use a concept called saturation, which looks at how many of the diverse hardware components, drivers, applications, etc. have been seen so far from updated PCs. Saturation helps us understand the extent to which the feature update rollout has penetrated the hardware and component ecosystem and, thus, is representative of the population of PCs to be updated.

06_monitoring-saturation.png
Figure 6. Monitoring the saturation of the Windows feature update space. Continuous dynamic training of the ML model typically starts once saturation reaches greater than 60% indicating that the training data is representative of the diversity of the Windows ecosystem.

Measuring the impact of ML on the Windows 10 update process

Keeping Windows 10 PC users safe and current has been an exciting journey, not just in terms of building out the technologies to support a large-scale ML deployment, but also in terms of determining how to measure impact in this context. We measure impact via a few different progress indicators:

  • ML model performance. The earliest indicator of impact is the quantifiable performance of the machine learning model, such as the area under the ROC curve and how well the algorithm calibrates predictions to reflect the actual probability of success.
  • Feature update safeguard holds identified via ML. The second indicator of impact is the speed at which we are able to identify and put in place safeguard holds to protect PCs. This directly relates to the PCs that are protected from any adverse update experiences.
  • Monitoring health signals post-update. The final indicator of impact confirms that the ML algorithm is indeed achieving what it is trained to do. We have consistently observed that the PCs chosen by the ML algorithm fare 5-40% better than others. (See Figure 1 for examples.)

Summary

While we are excited by the promise of machine learning, there is still much work to be done to ensure that ML is comprehensive, more automated, and agile enough to catch issues in a few seconds rather than hours. In upcoming feature updates, we will continue to evolve ML and share more details on the progress we make.

3 Comments
Super Contributor

So, second iteration (1809) was so bad that it is not even mentioned? :)

Frequent Visitor
Well, Figure 5 and the spike in Dec. 2018 seems to point to 1809 and Microsoft's pulling of that upgrade from distribution. So 1809 is there, if only in spirit.
Occasional Visitor
So this article is trying to say, that machine learning is protecting us from bad decisions made by Microsoft (giving up on testing team)? Thanks machines, keep up the good work!! :) These CEOs just keep talking and talking.... Please stop using Home users as guniea pigs, thank you. "Keeping Windows 10 PC users safe and current has been an exciting journey" - maybe for you, very frustrating for us/users. This is total bull**it, you know? Sory for my anger, but there is just no light at the end of the tunnel right now. This is the worst era of Windows, congrats!