Docsity

Collaborative Bayesian Network Tool | CS 430, Study Guides, Projects, Research of Software Engineering

Partial preview of the text

Download Collaborative Bayesian Network Tool | CS 430 and more Study Guides, Projects, Research Software Engineering in PDF only on Docsity!

Belief: Collaborative

Bayesian Network Tool

Sofware Requirements

Specification

Jed Brown Brandon Foster Jason Gookins

Contents

  • 1.0 Introduction...........................................................................................................................................
  • 1.1 Goals and Objectives..............................................................................................................................
  • 1.2 Statement of Scope................................................................................................................................
  • 1.3 Software Context...................................................................................................................................
  • 1.4 Major Constraints..................................................................................................................................
  • 2.0 Usage Scenario.......................................................................................................................................
  • 2.1 User Profiles...........................................................................................................................................
  • 2.2 Use Case Diagram..................................................................................................................................
  • 2.3 Use Cases...............................................................................................................................................
  • 2.3.1 Average User 1....................................................................................................................................
  • 2.3.2 Average User 2....................................................................................................................................
  • 2.3.3 Administrator......................................................................................................................................
  • 2.3.4 Superuser............................................................................................................................................
  • 2.4 Special Usage Considerations..............................................................................................................
  • 3.0 Data Model and Description................................................................................................................
  • 3.1 Data Description..................................................................................................................................
  • 3.1.1 Data Objects and Relations...............................................................................................................
  • 3.1.2 Complete Data Model.......................................................................................................................
  • 4.0 Restrictions, Limitations, and Constraints...........................................................................................
  • 5.0 Validation Criteria................................................................................................................................
    • 5.1 Classes of tests....................................................................................................................................
    • 5.2 Expected software response...............................................................................................................
    • 5.3 Performance bounds...........................................................................................................................
  • 6.0 Appendices...........................................................................................................................................
  • 6.1 Product Strategies................................................................................................................................
  • 6.2 Supplementary Information................................................................................................................

2.0 Usage Scenario

2.1 User Profiles

Average User:  Ability to create Bayesian networks o Add nodes/edges o Delete nodes/edges o Change values on nodes  Change priority (Default is 0)  Given/Goal Distributions  Minimum  Maximum  Mutable/Fixed  10 bin values  Give Full Name/Description  Ability to add/remove different Views of networks  Ability to load saved Bayesian networks o Saved as comma separated values spreadsheet (.csv)  Ability to save results from network evaluations  Ability to restrict/allow access to created networks  Ability to run evaluation algorithms o Number of runs o Minimal Explanation Super User: All abilities of an average user, plus:  Ability to create new and edit old evaluation algorithms to be implemented on the Bayesian networks o Default Algorithm o Pearl’s Algorithm o Simulated Annealing o Sum-product o Etcetera  Ability to plug algorithms into the current tool from the back end Admin:  Website upkeep  Database upkeep o Add new users  Create/edit usernames and passwords o Remove old users o Update database accordingly

2.2 Use Case Diagram

a. The user right clicks on the node they which to edit and clicks “Edit Node.” b. The user types a positive integer within the “Priority” field. c. The user selects an operation type from the operation drop down menu. i. The user can select a “NOT” operation if the node is a parent node that has one child. ii. The user can select an “OR” operation if the node is a parent node that has more than one child node. iii. Otherwise, the nodes have a default value of “NULL” operation. This is true of parent nodes that do not have any child nodes and vice versa.

  1. The user selects “Save Network.”
  2. The network is saved in the database.
  3. The user selects “Log Out.”
  4. The user is logged out of the service.

2.3.2 Average User 2

Use Case: Create/Edit Views Actors: Average User/Student Scenario: An average user uses the Belief system to create and edit views for various networks. Flow of Events:

  1. The user logs in.
  2. The database authenticates the login.
  3. The user selects “Open Network.”
  4. The user selects which network to open.
  5. The tool queries the database, retrieves the requested network, and displays it on the screen.
  6. The user can now add/edit distributions on various nodes for evaluation. a. The user right clicks on the node they which to edit and clicks “Edit Node.” b. The user selects the “Distribution” tab. c. The user then checks the “has ____ distribution” button. i. The user can select “has GOAL distribution” if the node is a child node. ii. The user can select “has GIVEN distribution” if the node is a parent node. d. The user then can add distribution values as desired. e. The user can change the minimum and maximum values as desired. f. If the node is of type GIVEN, the user can select either “mutable” or “fixed.”
  7. The user selects “Evaluate Network.”
  1. The user selects the number of runs, whether they want a minimal explanation, and which algorithm to use. The user then selects “OK.”
  2. The network is evaluated.
  3. The user can now right click a node and select “View Distribution.” a. A dialog will pop up showing the histographic distribution resultant from the bayesian evaluation.
  4. The user then selects “Reset Network.”
  5. The user can then restart from Step 6.
  6. The user selects “Log Out.”
  7. The user is logged out of the service.

2.3.3 Administrator

Use Case: Administrate database Actors: Administrator Scenario: An administrator modifies and maintains the Belief system’s database. Flow of Events:

  1. The administrator logs in.
  2. The database authenticates the login.
  3. The administrator selects “Add User.”
  4. The administrator enters the username and password for a new user.
  5. The administrator selects “OK.”
  6. The tool communicates with the database, and inserts the new user profile.
  7. The administrator selects “Edit User.”
  8. The administrator selects which user profile to edit.
  9. The administrator edits the user profile information.
  10. The administrator selects “OK.”
  11. The tool communicates with the database, and the selected user profile is modified.
  12. The administrator selects “Delete User.”
  13. The administrator selects which user profile to delete.
  14. The administrator selects “OK.”
  15. The tool communicates with the database, and the selected user profile is deleted.
  16. The administrator selects “Delete Network.”
  17. The administrator selects which network to delete.
  18. The administrator selects “OK.”
  19. The tool communicates with the database, and the selected network is deleted.
  20. The administrator selects “Edit Permissions.”
  21. The administrator selects which permissions to edit and how they are to be modified.

2.4 Special Usage Considerations

Since Belief will be designed as a web-based application and service, there will be very few system requirements for users. Being online and built with the Java language, Belief will be multi-platform compliant, and will require only that users have upgraded the Java Virtual Machine in their preferred browser to at least version 1.6 (also known as version 6). Database storage will not need to be particularly extensive, as the data generated by Belief will be stored in simple text formats. Networks will not need to be saved in large, graphical formats, but will be reconstructed on-the-fly from saved CSV- style data, thus freeing the system from having to store large quantities of data for every conceptual object. From a coding perspective, certain parts of the system will have to be designed in an extra-modular way in order to facilitate a pseudo-API setting within which superusers can edit and extend the algorithm suite.

3.0 Data Model and Description

3.1 Data Description

Other than standard login information, the Belief system’s data will be mostly comprised of networks, datasets on those networks, and evaluation histories of those networks.

3.1.1 Data Objects and Relations

Networks will be comprised of a list of nodes. Each node will contain the following information:  Index  X position  Y position  Name  Operation  Priority  Minimum (left bound of distribution)  Maximum (right bound of distribution)  Mutability  Distribution existence flags  Number of children  Indexes of children  Full name and/or description Networks will be either saved as full .csv files and reconstructed from the preceding data, or will be redesigned to fit fully within a relational database model. Furthermore, networks will have permissions that can be in one of two possible states:  Private - Can only be viewed/edited by the original creator  Public - Can be viewed/edited by all or a specific selection of users Datasets on networks, or Views, will be comprised of probabilistic distributions. These Views will be associated with both specific user profiles as well as specific networks. Like the networks themselves, Views will have either private or public permissions. Evaluation histories will be comprised of resultant datasets from network evaluation. These histories will be related to and only viewable by the creating user profile.

4.0 Restrictions, Limitations, and Constraints

There are two classes of limitations associated with the Belief system. The first is centered around the time and budget constraints associated with development. The timeline of development will have to be condensed to fit into the space from February to May, 2009, due to the length of the academic term. Our budget also being utterly nonexistent, the technologies to be used in development will be greatly constrained. However, this will be alleviated by our use of open source languages and development tools, as well as some setup help from faculty associated with the project. The other constraint is centered on some specific design and implementation elements within Belief itself. It is a basic requirement of the system that future researchers should be able to easily implement and insert new bayesian network evaluation algorithms into the system for testing and general use. This will limit some future design decisions in specific areas of the system, and will require increased modularity in those areas.

5.0 Validation Criteria

The existing implemented component has already undergone numerous user testing. Due to this it will not be the main focus of validation and testing. Instead, emphasis will be placed on the newly added features consisting of user login verification and persistence of information to a database.

5.1 Classes of tests

Each new component will be tested independently to ensure it behaves as expected given both valid an invalid input. The user verification component will test user credentials in order to allow the appropriate access to the user and verify that invalid access is not awarded. The persistence component will be tested to verify that user information as well as saved graphs are properly persisted to the database and restored correctly each time.

5.2 Expected software response

The user verification component should disallow improper user credentials and present the user with a notification message that the credentials entered are invalid. A successful login by an average user, super user, or administrator should allow access and present the user with the appropriate functionality. The persistence component should be able to store user preferences and graphs in the database. Using the previously stored information, it should then be able to recreate an identical graph as well as restore user preferences and apply them to the application.

5.3 Performance bounds

As the application is intended to be a Java applet, each user will be required to have the Java Runtime Environment installed and a browser that supports Java applets.

6.0 Appendices

6.1 Product Strategies

The Belief system will be deployed as a web service, thus negating the need for packaging and advertising, as well as ensuring a broad audience. Belief will be accessible by any user on a computer with access to the Internet.

6.2 Supplementary Information

Following are two screenshots of the previously developed tool that will serve as the central component in our system.