NST Internship Summary

47
NST Internship Summary Jan Muzik

description

NST Internship Summary. Jan Muzik. Presentation Outline. About the internship and NST Projects I have been involved in Results in CallMeSmart project Results in Diabetes project Practical example – a recent experience Further outlook Acknowledgement. Internship a t NST. - PowerPoint PPT Presentation

Transcript of NST Internship Summary

CallMeSmart

NST Internship SummaryJan MuzikPresentation OutlineAbout the internship and NSTProjects I have been involved inResults in CallMeSmart projectResults in Diabetes projectPractical example a recent experienceFurther outlookAcknowledgement

2Internship at NST6 months internship at Norwegian Centre for Telemedicine NSTSummer 2012, spring 2013NST is the world's largest center for research and development in telemedicine and e-healthLocated in Troms, Norther NorwayFounded by University Hospital of NNCooperation with University of Tromso

3Participation in NST ProjectsCallMeSmart ProjectThe Diabetes ICT Health Motivation Project

CallMeSmart ProjectContext-sensitive systems for mobile communication in hospitalsDesign, development and evaluation of a mobile communication infrastructure that balances communication availability and interruptions for hospital workerMy involvement:Analysis and redesign of current software solutionDesign and development of localization serviceEvaluation of new software technologies

The Diabetes ICT Health Motivation ProjectLong running project is focused on development and evaluation of ICT tools to increase insight of patients suffering diabetes into their diseaseCurrently focused on development of and Android application and its evaluationMy involvementInvestigation on possibility of integration of BlooTooth glucometersPreparing of app evaluation in Czech Rep.Integration of activity trackersPreparing of a consortium for a grant application

CallMeSmartProjectCurrent CMS Architecture

Identified targets for improvementsMonolithic applicationLack of app layersLack of modulesLack of interfacesGUI applicationInternal structure is hardcodedScalabilityRedundancy

Proposed solutionDavid Wheeler: "All problems in computer science can be solved by another level of indirection... Except for the problem of too many layers of indirectionModularizationMake the system distributedRedesign of the database modelGeneralization of context sourcesFormalization of decision rulesUsing a modular framework (MEF)

Things to considerEssentially a multiplatform solutionLinux, Android, WindowsExtendibility prepare for context sources and decision rules not know at the timeTechnologiesStandardsPlatform independentThose we have experience with

ParadigmsFirst develop in technologies you are the most productive and than watch for the bottlenecks and try to optimize them (perhaps using more efficient technologies)Donald Knuth: Premature optimization is the root of all evil.Avoid reinventing the wheel.Determinism everything must be stored/logged into local the DBArchitecture Goals Technical DetailsLoosely bound components - SOAP WebServicesCMS ServerAlso the CMS Server has internal modular architecture (Java Beans)Star architectureMultiple Context ProvidersCentralized database contains all the data necessary for context estimation at any moment

Integration testing - LocalizationIntegration of Blueth localization service (Blue Tooth based) into CMSBlueth Server first run at CTU in Prague, later moved to NSTBlueth Agents are running on 4 testing laptops at NSTBlueth API (all web-based)Web Services SOAPAutomatically generated proxy object in CMS CASREST OData based great flexibility URL specified queries, result in XML or JSONCurrently periodic pollingWebSockets callback implementation started

WebSocketsFull-duplex HTTP communicationEnables building faster, more efficient applicationExtends HTTP protocols, uses port 80 avoids firewall problemsImplementation problemsNew technology still being standardized (HTML 5)Supported only on IIS 8 Windows 8, Windows Server 2012Support on older Windows platforms would require change in OS core http.sys (IE 10?)

Context Provider Architecture

Blueth Localization ServiceResolves original problem of high energy consumption for phone invoked Bluetooth localizationUses either :Bluetooth device discoveryStation ConnectMethod for detecting BT devices even when not discoverable modern phones have only limited discoverable timePeriodically tries to open BT data channelClient-Server architectureUses newest Microsoft technologies: NET 4.5, IIS 8, SQL Server 2012, EF 5In proposed architecture BT localization can easily be superseded by more precise localization technology (ultrasound)Blueth Architecture

Blueth ServerBluethHub IIS hosted, WCF SOAP servicesWebMonitor - ASP.NET web app. DynamicData Scaffolding web administration interface (web app)DataServices OData, universal REST web API, URL queriesMicrosoft SQL Server 2012 Database

BluethHub API (SOAP)

Blueth Data Services

DataServices ODatahttp://ds.blueth/DataServices.svc/Areas?UserId=1&$orderby=DisplayName

Windows Phone 7.5Monitoring of localization processPrototype applicationBased on Silverlight WP7 app.Connected via WCF (SOAP)WebSockets not supported on WP 7.5 - Periodic pollingBuilt on MVVM architecture patternExtensive data binding, WPFDeclarative approach almost no code

Diabetes ProjectBlueTooth Glucometer IntegrationOnly true BT glucometers are made by ForaFora G31Fora DiamondSame communication protocolJust after the BG measurement device tries to connect to a paired mobile phoneIf the connection is successful, measured values can be obtained

Prototype ApplicationSugar MonitorReceives BG data via BlueToothSends measured values to a serverCommunication module is running as a service in backgroundReceived BG measurements are send to the server via OData serviceOData library: kSOAP2Data can be reviewed only via web portal

Physical Activity TrackersEnergy expenditure is an important value that influences actual BGTwo approaches (or combination):Continuous long term activity monitoring pedometersFitbit, Nike Fuelband, JawboneMust be worn permanentlyOnly peak activity tracking mobile applicationsSportsTracker, Endomondo, RunkeeperRelies on GPS works outdoorRequires manual specification of activity (walking, running, cycling)

Activity Tracker IntegrationMost suitable tracker is Fitbit UltraRequires specialized app to upload data from the trackerSupports both Android and iOSData can be obtained from server via web API Oauth securedProvides number of steps and calories burned per time period - up to 1 minute granularity3 month successful test of 4 users

Why to travel? A practical exampleThe Time-zone ProblemTelemedicine (IT, distributed systems) related problemIn Europe, not that actual problemPeople (telemed. patients) not often cross the time zone boundariesDaylight saving (letn as)Discontinuity in timeExample issue:Mobile emergency systemMany dropout alarms generated

Holidays in the USA

Time zones in the USAMostly 4 time zonesPeople are crossing TZ borders frequently

Time zones in the USA but Arizona does not observer DTS

Time zones in the USAbut Arizonas Navajo Nation DOES observer DTS

Time zones in the USAexcept of Hopi Nation within Navajo reservation!

World Time ZonesOffset time zones:India: UTC +5 Australian Central Time: UTC +9 Nepal: UTC +5 !Nepal time used to be UTC +5:40 20 years agoEtc.Whole China uses one time zone and no DTS

Solution: Coordinated Universal TimeUTC -> compromise between French Temps Universel Coordonn TUC and English Coordinated Universal Time CUTDerived from International Atomic TimeMost days have 84600 s, but adds leap seconds (25 in total since 1972)Best practice:Storing all times (in database) in UTCConverting times to local time only when being presented to userEven MS Windows works this way

Benefits for StudentsNew Erasmus agreement (2013-2014)Possibility to study 1-2 semesters at UiTEU co-financed stipendium30 student-months per academic year (Medical Technology)All study levels:BachelorMasterPostgradualLife changing experience!International Masters Program in Telemedicine and eHealth at UiT

Further PerspectiveFormation of a research consortium:FBME CTUNST1st Faculty of Medicine CUMotol University HospitalSeveral SMEs?Preparing a grant application for Norway fundsWaiting for the call since spring 2012Grant proposal focused on Evaluation of telemonitoring motivation of diabetic patients

AcknowledgementTerje SolvollLorenzo GironiAlain GiordanengoBernd TalsmaEirik ArsandGunnar HartvigsenRune PedersenTonny IversenYngve BergheimRadim KlimentDavid GillarMiroslav MunJan BroMartina OulickKarel HnaJan KaparVojtch MalinaEva Caithamlov

Thank you for your attention!

Questions?