html5-img
1 / 35

Muhammed J. Al-Muhammed David W. Embley Brigham Young University

Resolving Under Constrained and Over Constrained Systems of Conjunctive Constraints for Service Requests. Muhammed J. Al-Muhammed David W. Embley Brigham Young University. Supported by:. Outline of Presentation. The larger project Satisfying free-form service requests

deion
Télécharger la présentation

Muhammed J. Al-Muhammed David W. Embley Brigham Young University

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Resolving Under Constrained andOver Constrained Systems of ConjunctiveConstraints for Service Requests Muhammed J. Al-Muhammed David W. Embley Brigham Young University Supported by:

  2. Outline of Presentation • The larger project • Satisfying free-form service requests • Resolving encountered difficulties • Focus on resolution for: • Under constrained systems of constraints • Over constrained systems of constraints • System demo • Concluding remarks

  3. Challenges for Web Services • Help users find and use services • Reduce requirements for service specification and resolution I want to see a dermatologist between the 12th and 15th, at 1:00 PM or after. The dermatologist should be within 15 miles from my home and must accept my IHC insurance.

  4. A Conceptual-Modeling Solution • Domain Ontology • Has a single object set of interest (e.g. Appointment) • Establishes requirements for insertion of a single object into the object set of interest (e.g. requirements for making an appointment) • Has extensional recognizers (i.e. can match request to requirements) • Process Ontology • Recognizes constraints • Obtains information (from DB and from user) • Satisfies constraints • Resolves issues (if necessary)

  5. functional mandatory optional object set of interest Domain Ontology

  6. Domain Ontology: Data Frames Time … textual representation: ([2-9]|1[012]?)\s*:\s*([0-5]\d)\s*[AaPp]\s*\.?\s*[Mm]\s*\.?) TimeAtOrAfter(t1: Time, t2: Time) returns (Boolean) contextual keywords/phrases: (at\s+)?Time\s+or\s+after|… … Address … DistanceBetweenAddresses(a1: Address, a2: Address) returns (Distance) … Distance … textual representation: ((\d+(\.\d+)?)|(\.\d+)) … DistanceLessThanOrEqual(d1: Distance, d2: Distance) returns (Boolean) contextual keywords/phrases: (within|not\s+more\s+than |<\s*=|…)\s+Distance … Time … textual representation: ([2-9]|1[012]?)\s*:\s*([0-5]\d)\s*[AaPp]\s*\.?\s*[Mm]\s*\.?) TimeAtOrAfter(t1: Time, t2: Time) returns (Boolean) contextual keywords/phrases: (at\s+)?Time\s+or\s+after|… … Address … DistanceBetweenAddresses(a1: Address, a2: Address) returns (Distance) … Distance … textual representation: ((\d+(\.\d+)?)|(\.\d+)) … DistanceLessThanOrEqual(d1: Distance, d2: Distance) returns (Boolean) contextual keywords/phrases: (within|not\s+more\s+than |<\s*=|…)\s+Distance … Time … textual representation: ([2-9]|1[012]?)\s*:\s*([0-5]\d)\s*[AaPp]\s*\.?\s*[Mm]\s*\.?) TimeAtOrAfter(t1: Time, t2: Time) returns (Boolean) contextual keywords/phrases: (at\s+)?Time\s+or\s+after|… … Address … DistanceBetweenAddresses(a1: Address, a2: Address) returns (Distance) … Distance … textual representation: ((\d+(\.\d+)?)|(\.\d+)) … DistanceLessThanOrEqual(d1: Distance, d2: Distance) returns (Boolean) contextual keywords/phrases: (within|not\s+more\s+than |<\s*=|…)\s+Distance … Time … textual representation: ([2-9]|1[012]?)\s*:\s*([0-5]\d)\s*[AaPp]\s*\.?\s*[Mm]\s*\.?) TimeAtOrAfter(t1: Time, t2: Time) returns (Boolean) contextual keywords/phrases: (at\s+)?Time\s+or\s+after|… … Address … DistanceBetweenAddresses(a1: Address, a2: Address) returns (Distance) … Distance … textual representation: ((\d+(\.\d+)?)|(\.\d+)) … DistanceLessThanOrEqual(d1: Distance, d2: Distance) returns (Boolean) contextual keywords/phrases: (within|not\s+more\s+than |<\s*=|…)\s+Distance …

  7. Appointment context keywords/phrase: “appointment |want to see a |…” Time textual representation: “([2-9]|1[012]?)\s*:\s*([0-5]\d)\s*[AaPp]\s*\.?\s*[Mm]\s*\.?)” TimeAtOrAfter(t1: Time, t2: Time) returns (Boolean) contextual keywords/phrases: (at\s+)?Time\s+or\s+after|… Date DateBetween(x1: Date, x2: Date, x3: Date) returns(Boolean) contextual keywords/phrases: between\s+the\s+Date\s+and\s+Date …. Distance textual representation: ((\d+(\.\d+)?)|(\.\d+)) context keywords/phrases: miles? | kilometers? | … DistanceLessThanOrEqual(d1: Distance, d2: Distance) returns (Boolean) contextual keywords/phrases: (within|…)\s+Distance|… Example I want to see a dermatologist between the 12th and 15th, at 1:00 PM or after. The dermatologist should be within 15 miles from my home and must accept my IHC insurance.

  8. Appointment context keywords/phrase: “appointment |want to see a |…” Time textual representation: “([2-9]|1[012]?)\s*:\s*([0-5]\d)\s*[AaPp]\s*\.?\s*[Mm]\s*\.?)” TimeAtOrAfter(t1: Time, t2: Time) returns (Boolean) contextual keywords/phrases: (at\s+)?Time\s+or\s+after|… Date DateBetween(x1: Date, x2: Date, x3: Date) returns(Boolean) contextual keywords/phrases: between\s+the\s+Date\s+and\s+Date …. Distance textual representation: ((\d+(\.\d+)?)|(\.\d+)) context keywords/phrases: miles? | kilometers? | … DistanceLessThanOrEqual(d1: Distance, d2: Distance) returns (Boolean) contextual keywords/phrases: (within|…)\s+Distance|…       Part of this is about finding the right ontology.      I want to see adermatologistbetween the 12th and 15th, at 1:00 PM or after. The dermatologist should be within 15 miles from my home and must accept my IHC insurance.

  9. Marked-Up Domain Ontology Distance DistanceLessThanOrEqual(d1: Distance, “15”) TimeAtOrAfter(t1: Time, “1:00 PM”) DateBetween(x1: Date, “12th”, “15th”) InsuranceEqual(i1: Insurance, “IHC”)       

  10. Relevant Object and Relationship Sets Identification       

  11. Relevant Object & Relationship Sets Dermatologist(y) is at Address(z) Appointment(x) is with Dermatologist(y)

  12. Relevant Operations TimeAtOrAfter(t1: Time, “1:00 PM”) DateBetween(x1: Date, “12th”, “15th”) InsuranceEqual(i1: Insurance, “IHC”) DistanceLessThanOrEqual(d1: Distance, “15”) Appointment(x0) is at Time(t1) /\ TimeAtOrAfter(t1, “1:00 PM”) DateBetween(x1: Date, “12th”, “15th”) InsuranceEqual(i1: Insurance, “IHC”) DistanceLessThanOrEqual(d1: Distance, “15”) Appointment(x0) is at Time(t1) /\ TimeAtOrAfter(t1, “1:00 PM”) Appointment(x0) is at Date(x1) /\DateBetween(x1, “12th”, “15th”) Dermatologist(x1) accepts Insurance(i1) /\ InsuranceEqual(i1, “IHC”) DistanceLessThanOrEqual(d1: Distance, “15”) Appointment(x0) is at Time(t1) /\ TimeAtOrAfter(t1, “1:00 PM”) Appointment(x0) is at Date(x1) /\DateBetween(x1, “12th”, “15th”) Dermatologist(x1) accepts Insurance(i1) /\ InsuranceEqual(i1, “IHC”) DistanceLessThanOrEqual(d1: Distance, “15”) Appointment(x0) is at Time(t1) /\ TimeAtOrAfter(t1, “1:00 PM”) Appointment(x0) is at Date(x1) /\DateBetween(x1, “12th”, “15th”) Dermatologist(x1) accepts Insurance(i1) /\ InsuranceEqual(i1, “IHC”) DistanceLessThanOrEqual(DistanceBetweenAddresses(a1, a2),“15”) Appointment(x0) is at Time(t1) /\ TimeAtOrAfter(t1, “1:00 PM”) Appointment(x0) is at Date(x1) /\DateBetween(x1, “12th”, “15th”) Dermatologist(x1) accepts Insurance(i1) /\ InsuranceEqual(i1, “IHC”) Dermatologist(x1) is at Address(a1) /\ Person(x2) is at Address(a2) /\ DistanceLessThanOrEqual(DistanceBetweenAddresses(a1, a2),“15”) … Address … DistanceBetweenAddresses(a1: Address, a2: Address) returns (Distance) …

  13. Generated Constraints Appointment(x0) is with Dermatologist(x1) /\ Appointment(x0) is for Person(x2) /\ Dermatologist(x1) has Name(x3) /\ Person(x2) has Name(x4) /\ Appointment(x0) is on Date(x5) /\ DateBetween(x5, “12th”, “15th”) /\Appointment(x0) is at Time(x6) /\ TimeAtOrAfter(x6, “1:00 PM) /\ Dermatologist(x1) is at Address(x7) /\ Person(x2) is at Address(x8) /\ DistanceLessThanOrEqual(DistanceBetweenAddresses(x7, x8), “15”) /\ Dermatologist(x1) accepts Insurance(x9) /\ InsuranceEqual(x9, “IHC”)

  14. Process Ontology • Create service-request view • Generate constraints • Obtain information • From system • From user • Satisfy constraints • Resolve difficulties • Finalize service request

  15. Information from System

  16. Generated Database Query {<x0, x1, x3, x5, x6, x7, x9> | Appointment(x0) is with Dermatologist(x1) /\ Dermatologist(x1) has Name(x3) /\ Appointment(x0) is on Date(x5) /\ DateBetween(x5, “12th”, “15th”) /\Appointment(x0) is at Time(x6) /\ TimeAtOrAfter(x6, “1:00 PM) /\ Dermatologist(x1) is at Address(x7) /\ Dermatologist(x1) accepts Insurance(x9) /\ InsuranceEqual(x9, “IHC”) }

  17. Information from User • Some variables cannot be instantiated from the database. • Person(x2) • Name(x4) • Address(x8) • Non-lexical values can be instantiated without particular values. • The system asks for values for lexical values. • Name (of Person) for Appointment? • Address (of Person) for Appointment?

  18. Constraint Satisfaction Over the Instantiated Values • Exactly one solution: return it as the result • A few solutions: return all and ask the user to select one • Too many solutions (under constrained): resolve • No solutions (over constrained): resolve

  19. Under Constrained “I want a dodge, a 2000 or newer. The Mileage should be less than 80,000 and the price should not exceed $15,000” www.cars.com, November 2005

  20. Over Constrained “I want a dodge, a 2000 or newer. The Mileage should be less than 80,000 and the price should not exceed $4,000.” www.cars.com, November 2005

  21. Key Observations • Some (near) solutions are better than others. • People specify constraints on some concepts in a domain more often than on other concepts.

  22. Fundamental Concepts:Reward, Penalty, and Expectation • A reward is zero or a positive real number given to a solution for satisfying a constraint. • A penalty is a negative real number given to a near solution for violating a constraint. • An expectation for a conceptis the probability that a constraint for the concept will be specified.

  23. Fundamental Concepts:Pareto Optimality • Based on dominance relations • The reward for S1 is as high as the reward for S2 • For at least one reward S1 has a higher reward • Dominated solutions are not Pareto optimal

  24. Too Many Solutions:Reward-Based Ordering • Calculate rewards and combine them • Order solutions, highest combined reward first • Select the top-m Pareto optimal solutions

  25. S1 better The same S1 better Example “I want a dodgea 2000 or newer. The mileage should be less than 80,000 and the price should not be more than $15,000.” Solution Make Model Price Year Mileage --------------------------------------------------------------- S1 Dodge Stratus 13,999 2005 15,775 S2 Dodge Stratus 11,998 2004 23,404 S3 Dodge Stratus 14,200 2005 16,008 S4 Dodge Stratus 14,557 2005 16,954 S5 Dodge Stratus 10,590 2003 38,608

  26. Too Many Solutions: Expectation-Based Constraint Elicitation • Associate expectations with domain concepts. • Order the concepts in a domain based on their expectations. • e.g. make > price > model > … • Elicit additional constraints over unconstrained concepts. • e.g. If no preferred make provided, ask for make; if no price, ask for price; …

  27. No Solution: Penalty-Based Ordering • Calculate penalties and combine them. • Order close solutions, lowest combined penalty first. • Select the top-m Pareto optimal near solutions. • Ask if constraints can be relaxed, but only ask about a few (so as not to be bothersome).

  28. Can this constraint “1:00 PM or after” be relaxed to “12:40 PM”? Can this constraint “the 20th” be relaxed to “the 19th”? Example “I want to see a dermatologist on the 20th, 1:00 PM or after. The dermatologist should be within 5 miles from my home and must accept myIHCinsurance.” 12:40 PM the 19th

  29. Demo

  30. Demo

  31. Demo

  32. Performance Analysis(Correspondence to Human Expectations) • Tested appointment and car-purchase domains • 16 human subjects • The best-5 near solutions from 19 appointments • The best-5 solutions from 32 cars • Compared human selection with system selection

  33. Performance Analysis (appointment domain)

  34. Performance Analysis (car-purchase domain)

  35. Concluding Remarks • Simplification of everyday service request specification • Free-form service request • Ontology-based recognition of constraints • Constraint satisfaction • Resolution for under and over constrained requests • Ordered expectations • Ordered penalty/reward • Pareto optimality • Inter-observer agreement test: “Substantial Agreement” • Status of prototype implementation www.deg.byu.edu

More Related